diff options
| author | Grigory Shipunov | 2023-07-23 22:56:25 +0200 |
|---|---|---|
| committer | Grigory Shipunov | 2023-07-23 22:56:25 +0200 |
| commit | 5b47cc39c1d94d52a791e681fa3152754b9818cd (patch) | |
| tree | dd02d81bf10356377ceb1e6f0adee7474859122a /flake.nix | |
| parent | 8ab21edb0d9c70322dd99ca5a60ad26c64a3d812 (diff) | |
retire toaster, refactor a bit
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 51 |
1 files changed, 15 insertions, 36 deletions
@@ -2,19 +2,19 @@ inputs = { nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable"; - nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05"; + nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-23.05"; flake-utils.url = "github:numtide/flake-utils"; sops-nix = { url = "github:Mic92/sops-nix"; - inputs.nixpkgs.follows = "nixpkgs"; + inputs.nixpkgs.follows = "nixpkgs-stable"; }; microvm = { url = "github:astro/microvm.nix"; inputs = { - nixpkgs.follows = "nixpkgs"; + nixpkgs.follows = "nixpkgs-stable"; flake-utils.follows = "flake-utils"; }; }; @@ -44,7 +44,7 @@ , flake-utils , lanzaboote , microvm - , nixpkgs + , nixpkgs-stable , nixpkgs-unstable , sops-nix , ... @@ -53,11 +53,12 @@ flake-utils.lib.eachDefaultSystem (system: let - pkgs = nixpkgs.legacyPackages.${system}; + pkgs-stable = nixpkgs-stable.legacyPackages.${system}; + pkgs-unstable = nixpkgs-unstable.legacyPackages.${system}; in { - packages.slick = pkgs.callPackage "${self}/pkgs/slick.nix" { }; - packages.imhex = pkgs.libsForQt5.callPackage "${self}/pkgs/imhex.nix" { }; + packages.slick = pkgs-unstable.callPackage "${self}/pkgs/slick.nix" { }; + # packages.imhex = pkgs-unstable.libsForQt5.callPackage "${self}/pkgs/imhex.nix" { }; }) // { @@ -67,29 +68,7 @@ }; nixosConfigurations = { - toaster = nixpkgs-unstable.lib.nixosSystem { - system = "x86_64-linux"; - specialArgs = { inherit inputs; }; - modules = [ - sops-nix.nixosModules.sops - lanzaboote.nixosModules.lanzaboote - - ./hosts/toaster - - ./modules/basic-tools - ./modules/binary-caches.nix - ./modules/devtools.nix - ./modules/sway.nix - ./modules/gnupg.nix - ./modules/mail - ./modules/radio.nix - ./modules/science.nix - ./modules/tlp.nix - ./modules/virtualization.nix - ]; - }; - - cirrus = nixpkgs.lib.nixosSystem { + cirrus = nixpkgs-stable.lib.nixosSystem { system = "x86_64-linux"; specialArgs = { inherit inputs; }; modules = [ @@ -100,7 +79,7 @@ ]; }; - dishwasher = nixpkgs.lib.nixosSystem { + dishwasher = nixpkgs-stable.lib.nixosSystem { system = "x86_64-linux"; specialArgs = { inherit inputs; }; modules = [ @@ -113,7 +92,7 @@ ]; }; - nextcloud = nixpkgs.lib.nixosSystem { + nextcloud = nixpkgs-stable.lib.nixosSystem { system = "x86_64-linux"; specialArgs = { inherit inputs; }; modules = [ @@ -124,7 +103,7 @@ ]; }; - music = nixpkgs.lib.nixosSystem { + music = nixpkgs-stable.lib.nixosSystem { system = "x86_64-linux"; specialArgs = { inherit inputs; }; modules = [ @@ -135,7 +114,7 @@ ]; }; - news = nixpkgs.lib.nixosSystem { + news = nixpkgs-stable.lib.nixosSystem { system = "x86_64-linux"; specialArgs = { inherit inputs; }; modules = [ @@ -146,7 +125,7 @@ ]; }; - noctilucent = nixpkgs.lib.nixosSystem { + noctilucent = nixpkgs-stable.lib.nixosSystem { system = "x86_64-linux"; specialArgs = { inherit inputs; }; modules = [ @@ -165,6 +144,6 @@ let get-toplevel = (host: nixSystem: nixSystem.config.microvm.declaredRunner or nixSystem.config.system.build.toplevel); in - nixpkgs.lib.mapAttrs get-toplevel self.nixosConfigurations; + nixpkgs-stable.lib.mapAttrs get-toplevel self.nixosConfigurations; }; } |
