diff options
Diffstat (limited to 'util/flake.nix')
| -rw-r--r-- | util/flake.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/util/flake.nix b/util/flake.nix new file mode 100644 index 0000000..7d736c9 --- /dev/null +++ b/util/flake.nix @@ -0,0 +1,37 @@ +{ + description = "Nixos config flake"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + + #disko = { + # url = "github:nix-community/disko"; + # inputs.nixpkgs.follows = "nixpkgs"; + #}; + + impermanence = { + url = "github:nix-community/impermanence"; + }; + + home-manager = { + url = "github:nix-community/home-manager"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + }; + + outputs = {nixpkgs, ...} @ inputs: + { + nixosConfigurations.default = nixpkgs.lib.nixosSystem { + specialArgs = {inherit inputs;}; + modules = [ + #inputs.disko.nixosModules.default + #(import ./disko.nix { device = "/dev/vda"; }) + + ./configuration.nix + + inputs.home-manager.nixosModules.default + inputs.impermanence.nixosModules.impermanence + ]; + }; + }; +} |