diff options
-rw-r--r-- | nix-conf/home/TODO | 1 | ||||
-rw-r--r-- | nix-conf/home/flake.lock | 6 | ||||
-rw-r--r-- | nix-conf/home/flake.nix | 76 | ||||
-rw-r--r-- | nix-conf/home/includes/darwin.nix | 2 |
4 files changed, 53 insertions, 32 deletions
diff --git a/nix-conf/home/TODO b/nix-conf/home/TODO deleted file mode 100644 index 147ad1f..0000000 --- a/nix-conf/home/TODO +++ /dev/null @@ -1 +0,0 @@ -- structure/multiple systems diff --git a/nix-conf/home/flake.lock b/nix-conf/home/flake.lock index 564c3a9..305d45d 100644 --- a/nix-conf/home/flake.lock +++ b/nix-conf/home/flake.lock @@ -20,11 +20,11 @@ ] }, "locked": { - "lastModified": 1753387274, - "narHash": "sha256-Y1hAI9h+9DLBbgKvZBsHaeptFIcRw4iC6ySPmzyqmlM=", + "lastModified": 1753470191, + "narHash": "sha256-hOUWU5L62G9sm8NxdiLWlLIJZz9H52VuFiDllHdwmVA=", "owner": "nix-community", "repo": "home-manager", - "rev": "a35f6b60430ff0c7803bd2a727df84c87569c167", + "rev": "a1817d1c0e5eabe7dfdfe4caa46c94d9d8f3fdb6", "type": "github" }, "original": { diff --git a/nix-conf/home/flake.nix b/nix-conf/home/flake.nix index 6573927..03af5b7 100644 --- a/nix-conf/home/flake.nix +++ b/nix-conf/home/flake.nix @@ -28,12 +28,21 @@ }; outputs = - { self, nixpkgs, nixpkgs-stable, nixpkgs-unstable, nix-darwin, home-manager, home-manager-stable, sops-nix, ... }@inputs: + { + self, + nixpkgs, + nixpkgs-stable, + nixpkgs-unstable, + nix-darwin, + home-manager, + home-manager-stable, + sops-nix, + ... + }@inputs: let darwin-system = "aarch64-darwin"; linux-system = "x86_64-linux"; linux-arm-system = "aarch64-linux"; - darwin-pkgs = nixpkgs.legacyPackages.${darwin-system}; linux-pkgs = nixpkgs-stable.legacyPackages.${linux-system}; darwin-overlay-unstable = final: prev: { unstable = nixpkgs-unstable.legacyPackages.${darwin-system}; @@ -49,47 +58,60 @@ darwinConfigurations."LDN-DMORGAN" = nix-darwin.lib.darwinSystem { modules = [ # TODO move to separate file - ({ pkgs, ... }: { - nix.settings.experimental-features = "nix-command flakes"; - nix.settings.trusted-users = [ "dmorgan" "@staff" ]; - nix.settings.ssl-cert-file = "/Users/dmorgan/certs/full-cert.pem"; - system.configurationRevision = self.rev or self.dirtyRev or null; - system.stateVersion = 6; - nixpkgs.hostPlatform = "aarch64-darwin"; - ids.gids.nixbld = 30000; - users.users.dmorgan.home = "/Users/dmorgan"; - fonts.packages = [ pkgs.aporetic pkgs.meslo-lgs-nf ]; - }) + ( + { pkgs, ... }: + { + nix.settings.experimental-features = "nix-command flakes"; + nix.settings.trusted-users = [ + "dmorgan" + "@staff" + ]; + nix.settings.ssl-cert-file = "/Users/dmorgan/certs/full-cert.pem"; + system.configurationRevision = self.rev or self.dirtyRev or null; + system.stateVersion = 6; + nixpkgs.hostPlatform = "aarch64-darwin"; + ids.gids.nixbld = 30000; + users.users.dmorgan.home = "/Users/dmorgan"; + fonts.packages = [ + pkgs.aporetic + pkgs.meslo-lgs-nf + pkgs.fira-code + ]; + } + ) home-manager.darwinModules.home-manager { nixpkgs.overlays = [ darwin-overlay-unstable ]; - nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (nixpkgs.lib.getName pkg) [ "aspell-dict-en-science" ]; + nixpkgs.config.allowUnfreePredicate = + pkg: builtins.elem (nixpkgs.lib.getName pkg) [ "aspell-dict-en-science" ]; home-manager = { useGlobalPkgs = true; useUserPackages = true; - extraSpecialArgs = { inherit inputs; system = darwin-system; }; + extraSpecialArgs = { + inherit inputs; + system = darwin-system; + }; users.dmorgan = ./otm.nix; }; } ]; }; - # TODO remove - homeConfigurations."dmorgan" = home-manager.lib.homeManagerConfiguration { - pkgs = darwin-pkgs; - extraSpecialArgs = { inherit inputs; system = darwin-system; }; - modules = [ - ({ config, pkgs, ... }: { nixpkgs.overlays = [ darwin-overlay-unstable ]; nix.package = pkgs.nix; }) - ./otm.nix - ]; - }; + # WIP: TODO: migrate home configs to nixos config homeConfigurations."djm-egalmoth" = home-manager-stable.lib.homeManagerConfiguration { pkgs = linux-pkgs; - extraSpecialArgs = { inherit inputs; system = linux-system; }; + extraSpecialArgs = { + inherit inputs; + system = linux-system; + }; modules = [ - ({ config, pkgs, ... }: { nixpkgs.overlays = [ linux-overlay-unstable ]; }) + ( + { config, pkgs, ... }: + { + nixpkgs.overlays = [ linux-overlay-unstable ]; + } + ) ./egalmoth.nix ]; }; }; } - diff --git a/nix-conf/home/includes/darwin.nix b/nix-conf/home/includes/darwin.nix index 0c9f2f2..6a15642 100644 --- a/nix-conf/home/includes/darwin.nix +++ b/nix-conf/home/includes/darwin.nix @@ -73,7 +73,7 @@ in #mpc-cli #mpd #ncmpcpp - nix # on darwin we are not using nixos (duh) + nix nodejs pam-reattach pinentry_mac |