aboutsummaryrefslogtreecommitdiff
path: root/hosts/work
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-03-11 17:15:43 -0700
committerFranck Cuny <franck@fcuny.net>2024-03-11 17:15:43 -0700
commit63637f993f7d15cc8750d519e210a7d7c22a1efa (patch)
tree155caba0021e551a50baad53be190256d025012f /hosts/work
parentmark nix 2.16.2 as insecure (diff)
downloadinfra-63637f993f7d15cc8750d519e210a7d7c22a1efa.tar.gz
reorganize common files for hosts
Move the common configuration for nix to its own file.
Diffstat (limited to 'hosts/work')
-rw-r--r--hosts/work/default.nix26
1 files changed, 1 insertions, 25 deletions
diff --git a/hosts/work/default.nix b/hosts/work/default.nix
index 6cc3d5d..3db1e6f 100644
--- a/hosts/work/default.nix
+++ b/hosts/work/default.nix
@@ -1,31 +1,7 @@
-{ pkgs, ... }:
+{ ... }:
{
services.nix-daemon.enable = true;
- nix = {
- package = pkgs.nixFlakes;
-
- gc = {
- user = "root";
- automatic = true;
- interval.Day = 7;
- options = "--delete-older-than 30d";
- };
-
- settings = {
- trusted-users = [ "@admin" "fcuny" ];
- experimental-features = [ "nix-command" "flakes" ];
- };
- };
-
- # in order to install things like 1password's extensions
- nixpkgs.config.allowUnfree = true;
-
- # FIXME https://github.com/nix-community/nixd/issues/357
- nixpkgs.config.permittedInsecurePackages = [
- "nix-2.16.2"
- ];
-
programs.zsh.enable = true;
users.users.fcuny.home = "/Users/fcuny";