From c30546f0b30773afc4c8cfc74ed38854803a6278 Mon Sep 17 00:00:00 2001 From: Xory Date: Tue, 28 Oct 2025 17:32:07 +0200 Subject: [PATCH 1/2] fix: ollama & impermanence --- hosts/voidspear/configuration.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/hosts/voidspear/configuration.nix b/hosts/voidspear/configuration.nix index a0bdc1b..5dfeed9 100644 --- a/hosts/voidspear/configuration.nix +++ b/hosts/voidspear/configuration.nix @@ -63,6 +63,7 @@ "/var/lib/bluetooth" "/etc/NetworkManager/system-connections" "/var/lib/nixos" + "/var/lib/ollama" ]; }; From 3294b086e7f3626fad15a3716c36167546dea546 Mon Sep 17 00:00:00 2001 From: Xory Date: Tue, 28 Oct 2025 17:37:03 +0200 Subject: [PATCH 2/2] remove impermanence, too unstable --- flake.lock | 16 ----------- flake.nix | 4 +-- hosts/voidspear/configuration.nix | 32 ---------------------- hosts/voidspear/hardware-configuration.nix | 8 +++--- 4 files changed, 5 insertions(+), 55 deletions(-) diff --git a/flake.lock b/flake.lock index b7ad26e..5debf7a 100644 --- a/flake.lock +++ b/flake.lock @@ -20,21 +20,6 @@ "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" - } - }, "nixpkgs": { "locked": { "lastModified": 1761114652, @@ -54,7 +39,6 @@ "root": { "inputs": { "home-manager": "home-manager", - "impermanence": "impermanence", "nixpkgs": "nixpkgs" } } diff --git a/flake.nix b/flake.nix index 434043c..146731a 100644 --- a/flake.nix +++ b/flake.nix @@ -5,11 +5,10 @@ nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable/"; home-manager.url = "github:nix-community/home-manager"; home-manager.inputs.nixpkgs.follows = "nixpkgs"; - impermanence.url = "github:nix-community/impermanence"; }; outputs = - { self, nixpkgs, impermanence, home-manager, ... } @ inputs: + { self, nixpkgs, home-manager, ... } @ inputs: let system = "x86_64-linux"; username = "xory"; @@ -20,7 +19,6 @@ modules = [ ./hosts/${hostName}/configuration.nix ./hosts/${hostName}/hardware-configuration.nix - impermanence.nixosModules.impermanence home-manager.nixosModules.home-manager { home-manager.useGlobalPkgs = true; diff --git a/hosts/voidspear/configuration.nix b/hosts/voidspear/configuration.nix index 5dfeed9..9c8432a 100644 --- a/hosts/voidspear/configuration.nix +++ b/hosts/voidspear/configuration.nix @@ -40,38 +40,6 @@ LC_TIME = "en_GB.UTF-8"; }; - # Impermanence - - fileSystems."/" = { - device = "none"; - fsType = "tmpfs"; - neededForBoot = true; - }; - - fileSystems."/persist" = { - device = "/dev/disk/by-uuid/1578f380-e588-419b-ace0-f63e6a48ca39"; - fsType = "ext4"; - neededForBoot = true; - }; - - environment.persistence."/persist" = { - hideMounts = true; - directories = [ - "/nix" - "/home" - "/var/log" - "/var/lib/bluetooth" - "/etc/NetworkManager/system-connections" - "/var/lib/nixos" - "/var/lib/ollama" - ]; - }; - - environment.etc."machine-id" = { - source = "/persist/etc/machine-id"; - mode = "0444"; - }; - # Define a user account. Don't forget to set a password with ‘passwd’. programs.zsh.enable = true; # home-manager already installs this but nixos complains w/o it users.users.xory = { diff --git a/hosts/voidspear/hardware-configuration.nix b/hosts/voidspear/hardware-configuration.nix index 4b6e568..0d9f4c4 100644 --- a/hosts/voidspear/hardware-configuration.nix +++ b/hosts/voidspear/hardware-configuration.nix @@ -13,10 +13,10 @@ boot.kernelModules = [ "kvm-amd" ]; boot.extraModulePackages = [ ]; - # fileSystems."/" = - # { device = "/dev/disk/by-uuid/1578f380-e588-419b-ace0-f63e6a48ca39"; - # fsType = "ext4"; - # }; + fileSystems."/" = + { device = "/dev/disk/by-uuid/1578f380-e588-419b-ace0-f63e6a48ca39"; + fsType = "ext4"; + }; fileSystems."/boot" = { device = "/dev/disk/by-uuid/4CB1-40B6";