diff options
| author | Caroline Larimore <caroline@larimo.re> | 2024-05-10 19:48:45 -0700 |
|---|---|---|
| committer | Caroline Larimore <caroline@larimo.re> | 2024-05-10 19:48:45 -0700 |
| commit | 6eda4acc251fed0afbf5f1a85a63e321d8234799 (patch) | |
| tree | 0be125628339545e8a11cd29a994271bc16f55b3 /flake.nix | |
Initial Commit
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..7d736c9 --- /dev/null +++ b/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 + ]; + }; + }; +} |