From 1be972048dd58218cd689ecb5cac562eb398b751 Mon Sep 17 00:00:00 2001 From: Jakub Stachurski Date: Sun, 17 Aug 2025 11:25:33 +0200 Subject: refreshed config --- flake.nix | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 flake.nix (limited to 'flake.nix') 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 + ]; + }; + }; + }; +} -- cgit v1.3.1