diff options
author | makefu <github@syntax-fehler.de> | 2018-09-08 12:45:47 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2018-09-08 12:45:47 +0200 |
commit | c3a19f0af69fec15032ab7320674a77cda999976 (patch) | |
tree | a7820ac6a716d345809b552f220d78be5f74474f /2configs/default.nix | |
parent | 346e40de53098166700c4da580a329d931cdb452 (diff) |
ma 2/default: vim.nix resides in editor
Diffstat (limited to '2configs/default.nix')
-rw-r--r-- | 2configs/default.nix | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/2configs/default.nix b/2configs/default.nix index 0a89d2023..6192a92a5 100644 --- a/2configs/default.nix +++ b/2configs/default.nix @@ -8,13 +8,16 @@ with import <stockholm/lib>; mapAttrs (_: h: { hashedPassword = h; }) (import <secrets/hashedPasswords.nix>); } - ./vim.nix + ./editor/vim.nix ./binary-cache/nixos.nix ]; boot.kernelPackages = lib.mkDefault pkgs.linuxPackages_latest; programs.command-not-found.enable = false; + + nix.package = pkgs.nixUnstable; + nixpkgs.config.allowUnfreePredicate = (pkg: pkgs.lib.hasPrefix "unrar-" pkg.name); krebs = { enable = true; @@ -158,4 +161,10 @@ with import <stockholm/lib>; "-a task,never" ]; }; + system.activationScripts.state = optionalString (config.state != []) '' + cat << EOF + This machine is burdened with state: + ${concatMapStringsSep "\n" (d: "* ${d}") config.state} + EOF + ''; } |