diff options
| author | ene <ene@sils.li> | 2023-02-16 17:36:26 +0100 |
|---|---|---|
| committer | ene <ene@sils.li> | 2023-02-16 18:13:03 +0100 |
| commit | 62609ecba4373d6d89a39d7b5e7ca220ad869975 (patch) | |
| tree | 52ed2e8608d4eda8759707743989b6af40b08ee3 /flake | |
| parent | Feat(nix): Add settings (diff) | |
| download | nixos-config-62609ecba4373d6d89a39d7b5e7ca220ad869975.zip | |
Feat: Add impersistent for persistent files and dirs
Diffstat (limited to '')
| -rw-r--r-- | flake.lock | 16 | ||||
| -rw-r--r-- | flake.nix | 10 |
2 files changed, 23 insertions, 3 deletions
diff --git a/flake.lock b/flake.lock index aa5caffa..6da49c2f 100644 --- a/flake.lock +++ b/flake.lock @@ -92,6 +92,21 @@ "type": "github" } }, + "impermanence": { + "locked": { + "lastModified": 1675359654, + "narHash": "sha256-FPxzuvJkcO49g4zkWLSeuZkln54bLoTtrggZDJBH90I=", + "owner": "nix-community", + "repo": "impermanence", + "rev": "6138eb8e737bffabd4c8fc78ae015d4fd6a7e2fd", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "impermanence", + "type": "github" + } + }, "neovim_config": { "flake": false, "locked": { @@ -127,6 +142,7 @@ "root": { "inputs": { "home-manager": "home-manager", + "impermanence": "impermanence", "neovim_config": "neovim_config", "nixpkgs": "nixpkgs", "strip_js_comments": "strip_js_comments", diff --git a/flake.nix b/flake.nix index dd44e2f4..9c602019 100644 --- a/flake.nix +++ b/flake.nix @@ -23,6 +23,10 @@ url = "github:arkenfox/user.js"; flake = false; }; + + impermanence = { + url = "github:nix-community/impermanence"; + }; }; outputs = { @@ -32,6 +36,7 @@ neovim_config, strip_js_comments, user_js, + impermanence, ... } @ inputs: { nixosConfigurations.Tiamat = nixpkgs.lib.nixosSystem rec { @@ -39,6 +44,7 @@ specialArgs = inputs; modules = [ ./hosts/desktop/configuration.nix + home-manager.nixosModules.home-manager { home-manager = { @@ -50,11 +56,9 @@ inherit user_js; inherit system; inherit neovim_config; + inherit impermanence; }; }; - - # Optionally, use home-manager.extraSpecialArgs to pass - # arguments to home.nix } ]; }; |
