diff options
| author | Jakub Stachurski <j.stachurski@student.utwente.nl> | 2025-08-17 11:25:33 +0200 |
|---|---|---|
| committer | Jakub Stachurski <j.stachurski@student.utwente.nl> | 2025-08-17 11:25:33 +0200 |
| commit | 1be972048dd58218cd689ecb5cac562eb398b751 (patch) | |
| tree | 203f19ee01ad5fe28f2868e8c1451f9538e4ab12 /flake.nix | |
| parent | 3cd59d4670711e34a50adea912c3b0894883e490 (diff) | |
refreshed config
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..f7ff977 --- /dev/null +++ b/flake.nix @@ -0,0 +1,57 @@ +{ + description = "Nixos config flake"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + + home-manager = { + url = "github:nix-community/home-manager"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + }; + + outputs = { self, nixpkgs, ... }@inputs: { + packages."x86_64-linux".full-iso = self.nixosConfigurations.full-iso.config.system.build.isoImage; + nixosConfigurations = { + + apocalypse = nixpkgs.lib.nixosSystem { + specialArgs = { + inherit inputs; + }; + system = "x86_64-linux"; + modules = [ + ./common.nix + ./hosts/apocalypse + ./users/wilkuu.nix + inputs.home-manager.nixosModules.default + ]; + }; + test_vm = nixpkgs.lib.nixosSystem { + specialArgs = { + inherit inputs; + }; + system = "x86_64-linux"; + modules = [ + ./common.nix + ./hosts/test_vm + ./users/wilkuu.nix + inputs.home-manager.nixosModules.default + ]; + }; + full-iso = nixpkgs.lib.nixosSystem { + specialArgs = { + inherit inputs; + isoImage.squashfsCompression = "lz4"; + isoImage.isoLabel = "NIX_WQ_ISO"; + }; + system = "x86_64-linux"; + modules = [ + ./common.nix + ./hosts/full-iso + ./users/live-user.nix + inputs.home-manager.nixosModules.default + ]; + }; + }; + }; +} |
