Fixup profiles

This commit is contained in:
Tim Schubert 2020-12-30 17:32:44 +01:00
parent 8bb93c7af8
commit 7a9a35ed0f
No known key found for this signature in database
GPG key ID: 99658A3EB5CD7C13
5 changed files with 24 additions and 15 deletions

View file

@ -1,7 +1,7 @@
{ pkgs ? import <nixpkgs> }:
with pkgs;
{
rec {
lib = import ./lib { inherit pkgs; };
modules = import ./modules;
hmModules = import ./modules/home;

View file

@ -7,19 +7,14 @@ let
"media.local"
];
backups = "/mnt/storage/backup";
this = import ../.. {};
keys = ../../pkgs/keys/keys;
in {
imports = (lib.attrValues this.modules) ++ [
<nixpkgs/nixos/modules/profiles/minimal.nix>
imports = [
../../modules/profiles/base
];
dadada = {
admin.enable = true;
fileShare.enable = true;
admin.users = {
"dadada" = [ "${keys}/dadada.pub" ];
};
vpnServer.enable = true;
vpnServer.peers = {

View file

@ -1,10 +1,22 @@
{ config, pkgs, lib, ... }:
with lib;
let
dadadaKeys = ../../../pkgs/keys/keys;
in
{
imports = import ../../module-list.nix;
networking.domain = mkDefault "dadada.li";
dadada.autoUpgrade = mkDefault true;
dadada.admin.users = {
"dadada" = [ "${dadadaKeys}/dadada.pub" ];
};
#dadada.autoUpgrade = mkDefault true;
environment.noXlibs = mkDefault true;
documentation.enable = mkDefault false;
documentation.nixos.enable = mkDefault false;
i18n.defaultLocale = mkDefault "en_US.UTF-8";
console = mkDefault {

View file

@ -1,14 +1,13 @@
{ config, pkgs, lib, ... }:
with lib;
{
imports = import ../../module-list.nix ++ [
imports = [
../base
];
dadada = {
networking = {
useLocalResolver = mkDefault true;
domain = mkDefault "dadada.li";
};
};
@ -31,4 +30,8 @@ with lib;
highlighters = [ "main" "brackets" "pattern" "cursor" "root" "line" ];
};
};
environment.noXlibs = false;
documentation.enable = true;
documentation.nixos.enable = true;
}

View file

@ -3,11 +3,10 @@ with lib;
let
cfg = config.dadada.autoUpgrade;
in {
options = {
dadada.autoUpgrade = {
options.dadada.autoUpgrade = {
enable = mkEnableOption "Enable automatic upgrades";
};
};
config = mkIf cfg.enable {
nix = {