Use Stow on generic distros also

This commit is contained in:
Bun 2025-05-14 01:09:16 -04:00
parent 66502988ef
commit 161c11c23a
5 changed files with 25 additions and 16 deletions

24
flake.lock generated
View file

@ -250,11 +250,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1746171682, "lastModified": 1747020534,
"narHash": "sha256-EyXUNSa+H+YvGVuQJP1nZskXAowxKYp79RNUsNdQTj4=", "narHash": "sha256-D/6rkiC6w2p+4SwRiVKrWIeYzun8FBg7NlMKMwQMxO0=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "50eee705bbdbac942074a8c120e8194185633675", "rev": "b4bbdc6fde16fc2051fcde232f6e288cd22007ca",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -287,11 +287,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1746681524, "lastModified": 1747109298,
"narHash": "sha256-c5kDVFh+vVfQSEXdVIudFRzPH3LO8j2ImgsBeo8v+Eo=", "narHash": "sha256-v6P2Lm2ucRhFpVdY2feQKxJIGfaud3CVHV5GWoCNji8=",
"owner": "Jovian-Experiments", "owner": "Jovian-Experiments",
"repo": "Jovian-NixOS", "repo": "Jovian-NixOS",
"rev": "14eb8f7d2b0cca74691db620292037bdb813ceb7", "rev": "7ceb01d01e02fa55699db1ecb99df1295b47b499",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -358,11 +358,11 @@
"nixpkgs": "nixpkgs_2" "nixpkgs": "nixpkgs_2"
}, },
"locked": { "locked": {
"lastModified": 1746842210, "lastModified": 1747188102,
"narHash": "sha256-bGJ3q4BEJEEz9MNo2QwXgQULmSUItxn52lMQLNImZ+w=", "narHash": "sha256-h/J6hSskrsR+YFCjWW4x4qXm1oGcUUvXH8TEZDZnLqk=",
"owner": "Infinidoge", "owner": "Infinidoge",
"repo": "nix-minecraft", "repo": "nix-minecraft",
"rev": "9acdd362e10b50cb36234544b5b80b3d0372456d", "rev": "cc53b6b79022c9dd31b9d426bb5a5f39246196e1",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -464,11 +464,11 @@
"treefmt-nix": "treefmt-nix" "treefmt-nix": "treefmt-nix"
}, },
"locked": { "locked": {
"lastModified": 1746906291, "lastModified": 1747196235,
"narHash": "sha256-dX85SDSt4h7281Dkox9NnTPjCIDs5JxkJQB9Czd7ajc=", "narHash": "sha256-41VHCKCevxL7Luqwc9A2r3DPTOz6Ky+nRkHp1eurtmA=",
"owner": "nix-community", "owner": "nix-community",
"repo": "NUR", "repo": "NUR",
"rev": "7c77c4255a4cda029257090a72806dbd48ea14e3", "rev": "2378adbb9ebb4654dc0d41786609839b6ad4a7ef",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -12,7 +12,17 @@
# Network mounts # Network mounts
"/home/${config.sysusers.main}/Network/Midas" = { "/home/${config.sysusers.main}/Network/Midas" = {
device = "sv.nixfox.ca:/storage"; device = "10.2.0.1:/storage";
fsType = "nfs4";
options = [
"noatime"
"noauto"
"soft"
"x-systemd.automount"
];
};
"/home/${config.sysusers.main}/Network/Kitty" = {
device = "10.2.0.2:/storage/bun";
fsType = "nfs4"; fsType = "nfs4";
options = [ options = [
"noatime" "noatime"

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, nur, ... }: { config, lib, pkgs, ... }:
{ {
config = lib.mkIf config.home.desktop.enable { config = lib.mkIf config.home.desktop.enable {
programs.firefox = { programs.firefox = {

View file

@ -3,7 +3,6 @@
imports = [ impermanence.homeManagerModules.default ]; imports = [ impermanence.homeManagerModules.default ];
home.persistence."${config.xdg.userDirs.extraConfig.XDG_PERSIST_DIR}" = { home.persistence."${config.xdg.userDirs.extraConfig.XDG_PERSIST_DIR}" = {
enable = !config.targets.genericLinux.enable;
allowOther = false; allowOther = false;
removePrefixDirectory = true; removePrefixDirectory = true;
directories = [ directories = [

View file

@ -11,8 +11,8 @@
templates = null; templates = null;
extraConfig = { extraConfig = {
XDG_PERSIST_DIR = if !config.targets.genericLinux.enable then "/persist${config.home.homeDirectory}" else "${config.home.homeDirectory}/.stow";
XDG_SCREENSHOTS_DIR = "${config.xdg.userDirs.pictures}/Screenshots"; XDG_SCREENSHOTS_DIR = "${config.xdg.userDirs.pictures}/Screenshots";
XDG_PERSIST_DIR = "/persist${config.home.homeDirectory}";
}; };
}; };
} }