From cac15febfa08c751ae45dc1c6a0aaab15d970a8e Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Thu, 13 Feb 2025 20:10:59 -0500 Subject: [PATCH] Add impermanence for ship of harkinian's files. --- nix/steam_deck/configuration/flake.lock | 16 ++++++++++++++++ nix/steam_deck/configuration/flake.nix | 7 ++++++- .../configuration/roles/shipwright/default.nix | 9 +++++++++ 3 files changed, 31 insertions(+), 1 deletion(-) diff --git a/nix/steam_deck/configuration/flake.lock b/nix/steam_deck/configuration/flake.lock index 4320425..491c594 100644 --- a/nix/steam_deck/configuration/flake.lock +++ b/nix/steam_deck/configuration/flake.lock @@ -35,6 +35,21 @@ "type": "github" } }, + "impermanence": { + "locked": { + "lastModified": 1737831083, + "narHash": "sha256-LJggUHbpyeDvNagTUrdhe/pRVp4pnS6wVKALS782gRI=", + "owner": "nix-community", + "repo": "impermanence", + "rev": "4b3e914cdf97a5b536a889e939fb2fd2b043a170", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "impermanence", + "type": "github" + } + }, "nixgl": { "inputs": { "flake-utils": "flake-utils", @@ -75,6 +90,7 @@ "root": { "inputs": { "home-manager": "home-manager", + "impermanence": "impermanence", "nixgl": "nixgl", "nixpkgs": "nixpkgs" } diff --git a/nix/steam_deck/configuration/flake.nix b/nix/steam_deck/configuration/flake.nix index e68e05f..b1fbdbd 100644 --- a/nix/steam_deck/configuration/flake.nix +++ b/nix/steam_deck/configuration/flake.nix @@ -9,12 +9,16 @@ url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; }; + impermanence = { + url = "github:nix-community/impermanence"; + }; }; outputs = { nixpkgs, nixgl, home-manager, + impermanence, ... }: let @@ -33,9 +37,10 @@ extraSpecialArgs = { inherit nixgl; }; modules = [ + { nixpkgs.overlays = [ nixgl.overlay ]; } + impermanence.homeManagerModules.impermanence ./hosts/deck ./home.nix - { nixpkgs.overlays = [ nixgl.overlay ]; } ]; }; }; diff --git a/nix/steam_deck/configuration/roles/shipwright/default.nix b/nix/steam_deck/configuration/roles/shipwright/default.nix index def9f7e..587dfa8 100644 --- a/nix/steam_deck/configuration/roles/shipwright/default.nix +++ b/nix/steam_deck/configuration/roles/shipwright/default.nix @@ -28,6 +28,15 @@ ]; # TODO perhaps install ~/.local/share/soh/shipofharkinian.json + + home.persistence."/home/deck/.persist" = { + directories = [ + { + directory = ".local/share/soh"; + method = "symlink"; + } + ]; + }; }) ] );