diff options
author | Mark Nipper <nipsy@bitgnome.net> | 2024-10-23 02:04:51 -0700 |
---|---|---|
committer | Mark Nipper <nipsy@bitgnome.net> | 2024-10-23 02:04:51 -0700 |
commit | f95e8c631c1f45249b716c5cf106c891be7d6c24 (patch) | |
tree | 7f3774068918b504cd19bfe1a860a5f1245e520d /flake.nix | |
parent | f03eaf57c08a9ee942e84666663458d7b437a408 (diff) | |
download | nix-f95e8c631c1f45249b716c5cf106c891be7d6c24.tar nix-f95e8c631c1f45249b716c5cf106c891be7d6c24.tar.gz nix-f95e8c631c1f45249b716c5cf106c891be7d6c24.tar.bz2 nix-f95e8c631c1f45249b716c5cf106c891be7d6c24.tar.lz nix-f95e8c631c1f45249b716c5cf106c891be7d6c24.tar.xz nix-f95e8c631c1f45249b716c5cf106c891be7d6c24.tar.zst nix-f95e8c631c1f45249b716c5cf106c891be7d6c24.zip |
Migrate to more standard flake template
Diffstat (limited to '')
-rw-r--r-- | flake.nix | 101 |
1 files changed, 22 insertions, 79 deletions
@@ -1,5 +1,5 @@ { - description = "nipsy's NixOS configuration"; + description = "nipsy's NixOS configurations"; inputs = { @@ -35,26 +35,22 @@ }; - outputs = inputs@{ home-manager-stable, home-manager, nixos-hardware, nixpkgs-stable, nixpkgs, nvidia-patch, sops-nix, ... }: { + outputs = { home-manager-stable, home-manager, nixos-hardware, nixpkgs-stable, nixpkgs, nvidia-patch, self, sops-nix, ... } @ inputs: let + inherit (self) outputs; + systems = [ + #"aarch64-linux" + #"i686-linux" + "x86_64-linux" + #"aarch64-darwin" + #"x86_64-darwin" + ]; + forAllSystems = nixpkgs.lib.genAttrs systems; + in { nixosConfigurations = { - arrakis = nixpkgs.lib.nixosSystem rec { - system = "x86_64-linux"; - - specialArgs = { inherit inputs nvidia-patch; - pkgs = import nixpkgs { - inherit system; - config.allowUnfree = true; - overlays = [(import ./pkgs)]; - }; - - pkgs-stable = import nixpkgs-stable { - inherit system; - config.allowUnfree = true; - }; - }; - + arrakis = nixpkgs.lib.nixosSystem { + specialArgs = { inherit inputs outputs; }; modules = [ ./hosts/arrakis home-manager.nixosModules.home-manager { @@ -66,22 +62,8 @@ ]; }; - darkstar = nixpkgs.lib.nixosSystem rec { - system = "x86_64-linux"; - - specialArgs = { - pkgs = import nixpkgs { - inherit system; - config.allowUnfree = true; - overlays = [(import ./pkgs)]; - }; - - pkgs-stable = import nixpkgs-stable { - inherit system; - config.allowUnfree = true; - }; - }; - + darkstar = nixpkgs.lib.nixosSystem { + specialArgs = { inherit inputs outputs; }; modules = [ ./hosts/darkstar home-manager.nixosModules.home-manager { @@ -93,21 +75,7 @@ }; ginaz = nixpkgs.lib.nixosSystem rec { - system = "x86_64-linux"; - - specialArgs = { - pkgs = import nixpkgs { - inherit system; - config.allowUnfree = true; - overlays = [(import ./pkgs)]; - }; - - pkgs-stable = import nixpkgs-stable { - inherit system; - config.allowUnfree = true; - }; - }; - + specialArgs = { inherit inputs outputs; }; modules = [ ./hosts/ginaz home-manager.nixosModules.home-manager { @@ -121,21 +89,7 @@ }; kaitain = nixpkgs.lib.nixosSystem rec { - system = "x86_64-linux"; - - specialArgs = { - pkgs = import nixpkgs { - inherit system; - config.allowUnfree = true; - overlays = [(import ./pkgs)]; - }; - - pkgs-stable = import nixpkgs-stable { - inherit system; - config.allowUnfree = true; - }; - }; - + specialArgs = { inherit inputs outputs; }; modules = [ ./hosts/kaitain home-manager.nixosModules.home-manager { @@ -146,21 +100,7 @@ }; richese = nixpkgs.lib.nixosSystem rec { - system = "x86_64-linux"; - - specialArgs = { - pkgs = import nixpkgs { - inherit system; - config.allowUnfree = true; - overlays = [(import ./pkgs)]; - }; - - pkgs-stable = import nixpkgs-stable { - inherit system; - config.allowUnfree = true; - }; - }; - + specialArgs = { inherit inputs outputs; }; modules = [ ./hosts/richese home-manager.nixosModules.home-manager { @@ -172,6 +112,9 @@ }; + overlays = import ./overlays {inherit inputs;}; + packages = forAllSystems (system: import ./pkgs nixpkgs.legacyPackages.${system}); + }; } |