move impermanence input up the tree
This commit is contained in:
43
flake.lock
generated
43
flake.lock
generated
@@ -215,11 +215,11 @@
|
|||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1,
|
"lastModified": 1,
|
||||||
"narHash": "sha256-SakyZnAhoToQmui5hozmLqkoLw6N/AHCgKF4tCP/sTQ=",
|
"narHash": "sha256-SakyZnAhoToQmui5hozmLqkoLw6N/AHCgKF4tCP/sTQ=",
|
||||||
"path": "/mnt/nix/store/rvvgy838if8wgg37p3pn9g3airwqdvk9-source/disko",
|
"path": "/mnt/nix/store/4y5l241pnwi2qh4wxcfmxlpdnjq8nsac-source/disko",
|
||||||
"type": "path"
|
"type": "path"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"path": "/mnt/nix/store/rvvgy838if8wgg37p3pn9g3airwqdvk9-source/disko",
|
"path": "/mnt/nix/store/4y5l241pnwi2qh4wxcfmxlpdnjq8nsac-source/disko",
|
||||||
"type": "path"
|
"type": "path"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -1022,21 +1022,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"impermanenceConfig": {
|
|
||||||
"inputs": {
|
|
||||||
"impermanence": "impermanence"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1,
|
|
||||||
"narHash": "sha256-7ipphehm+qDglyyFxGz2ZYf9uNbXCohPCFAGSI2QMb8=",
|
|
||||||
"path": "/mnt/nix/store/rvvgy838if8wgg37p3pn9g3airwqdvk9-source/impermanence",
|
|
||||||
"type": "path"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"path": "/mnt/nix/store/rvvgy838if8wgg37p3pn9g3airwqdvk9-source/impermanence",
|
|
||||||
"type": "path"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"kitty": {
|
"kitty": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1,
|
"lastModified": 1,
|
||||||
@@ -1059,11 +1044,11 @@
|
|||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 0,
|
"lastModified": 0,
|
||||||
"narHash": "sha256-Hz1a2OgtlwgdQhI6hiUvityjVURsoY6oXkXq25RyiBM=",
|
"narHash": "sha256-Hz1a2OgtlwgdQhI6hiUvityjVURsoY6oXkXq25RyiBM=",
|
||||||
"path": "/mnt/nix/store/iannwyfkv44qaginpf0m6915sdw9y61i-source/home",
|
"path": "/mnt/nix/store/x4s89c2jcsnfwqjbj5zcpb233i9x31i0-source/home",
|
||||||
"type": "path"
|
"type": "path"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"path": "/mnt/nix/store/iannwyfkv44qaginpf0m6915sdw9y61i-source/home",
|
"path": "/mnt/nix/store/x4s89c2jcsnfwqjbj5zcpb233i9x31i0-source/home",
|
||||||
"type": "path"
|
"type": "path"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -1449,11 +1434,11 @@
|
|||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1,
|
"lastModified": 1,
|
||||||
"narHash": "sha256-6oCDKhDSqJMWeODXDHD5XorN7/+KXBBIPZ2z+obwUNY=",
|
"narHash": "sha256-6oCDKhDSqJMWeODXDHD5XorN7/+KXBBIPZ2z+obwUNY=",
|
||||||
"path": "/mnt/nix/store/rvvgy838if8wgg37p3pn9g3airwqdvk9-source/packages",
|
"path": "/mnt/nix/store/4y5l241pnwi2qh4wxcfmxlpdnjq8nsac-source/packages",
|
||||||
"type": "path"
|
"type": "path"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"path": "/mnt/nix/store/rvvgy838if8wgg37p3pn9g3airwqdvk9-source/packages",
|
"path": "/mnt/nix/store/4y5l241pnwi2qh4wxcfmxlpdnjq8nsac-source/packages",
|
||||||
"type": "path"
|
"type": "path"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -1539,11 +1524,11 @@
|
|||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1,
|
"lastModified": 1,
|
||||||
"narHash": "sha256-hg0wqQn6BxQXLmfBINzZoaWpdSIlwwZxKbYz+4df83o=",
|
"narHash": "sha256-hg0wqQn6BxQXLmfBINzZoaWpdSIlwwZxKbYz+4df83o=",
|
||||||
"path": "/mnt/nix/store/rvvgy838if8wgg37p3pn9g3airwqdvk9-source/programs",
|
"path": "/mnt/nix/store/4y5l241pnwi2qh4wxcfmxlpdnjq8nsac-source/programs",
|
||||||
"type": "path"
|
"type": "path"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"path": "/mnt/nix/store/rvvgy838if8wgg37p3pn9g3airwqdvk9-source/programs",
|
"path": "/mnt/nix/store/4y5l241pnwi2qh4wxcfmxlpdnjq8nsac-source/programs",
|
||||||
"type": "path"
|
"type": "path"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -1670,30 +1655,30 @@
|
|||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1,
|
"lastModified": 1,
|
||||||
"narHash": "sha256-VZKans7CW3BgyWaVgi9mGKvJsCvyse2zLPRB5fJnlfA=",
|
"narHash": "sha256-VZKans7CW3BgyWaVgi9mGKvJsCvyse2zLPRB5fJnlfA=",
|
||||||
"path": "/mnt/nix/store/rvvgy838if8wgg37p3pn9g3airwqdvk9-source/services",
|
"path": "/mnt/nix/store/4y5l241pnwi2qh4wxcfmxlpdnjq8nsac-source/services",
|
||||||
"type": "path"
|
"type": "path"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"path": "/mnt/nix/store/rvvgy838if8wgg37p3pn9g3airwqdvk9-source/services",
|
"path": "/mnt/nix/store/4y5l241pnwi2qh4wxcfmxlpdnjq8nsac-source/services",
|
||||||
"type": "path"
|
"type": "path"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"system": {
|
"system": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"diskoConfig": "diskoConfig",
|
"diskoConfig": "diskoConfig",
|
||||||
"impermanenceConfig": "impermanenceConfig",
|
"impermanence": "impermanence",
|
||||||
"pckgs": "pckgs",
|
"pckgs": "pckgs",
|
||||||
"prgms": "prgms_2",
|
"prgms": "prgms_2",
|
||||||
"srvcs": "srvcs"
|
"srvcs": "srvcs"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1,
|
"lastModified": 1,
|
||||||
"narHash": "sha256-exwW4tel96FIoxYUW72TGM9s5fze+qMf32ohapeTOsM=",
|
"narHash": "sha256-6D9Qya9I2fNjDLasG/DH3OQwSGoFbMkU7ZpvPEIEPqs=",
|
||||||
"path": "/mnt/nix/store/iannwyfkv44qaginpf0m6915sdw9y61i-source/system",
|
"path": "/mnt/nix/store/x4s89c2jcsnfwqjbj5zcpb233i9x31i0-source/system",
|
||||||
"type": "path"
|
"type": "path"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"path": "/mnt/nix/store/iannwyfkv44qaginpf0m6915sdw9y61i-source/system",
|
"path": "/mnt/nix/store/x4s89c2jcsnfwqjbj5zcpb233i9x31i0-source/system",
|
||||||
"type": "path"
|
"type": "path"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
diskoConfig.url = "./disko";
|
diskoConfig.url = "./disko";
|
||||||
|
|
||||||
impermanenceConfig.url = "./impermanence";
|
impermanence.url = "github:nix-community/impermanence";
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -22,7 +22,8 @@
|
|||||||
./configuration
|
./configuration
|
||||||
./configuration/${core_inputs.host}/hardware-configuration.nix
|
./configuration/${core_inputs.host}/hardware-configuration.nix
|
||||||
inputs.diskoConfig.module
|
inputs.diskoConfig.module
|
||||||
inputs.impermanenceConfig.module
|
./impermanence
|
||||||
|
inputs.impermanence.nixosModules.impermanence
|
||||||
inputs.srvcs.module
|
inputs.srvcs.module
|
||||||
inputs.pckgs.module
|
inputs.pckgs.module
|
||||||
inputs.prgms.module
|
inputs.prgms.module
|
||||||
|
|||||||
@@ -1,16 +1,7 @@
|
|||||||
{ config, lib, self, ... }: {
|
{ config, lib, ... }: {
|
||||||
|
|
||||||
options = {};
|
|
||||||
|
|
||||||
config = lib.mkMerge [
|
config = lib.mkIf config.disko.impermanent {
|
||||||
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
self.inputs.impermanence.nixosModules.impermanence
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
(lib.mkIf config.disko.impermanent {
|
|
||||||
|
|
||||||
fileSystems."/persist".neededForBoot = true;
|
fileSystems."/persist".neededForBoot = true;
|
||||||
environment.persistence = {
|
environment.persistence = {
|
||||||
@@ -32,6 +23,5 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
programs.fuse.userAllowOther = true;
|
programs.fuse.userAllowOther = true;
|
||||||
})
|
};
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
description = "nix impermanence config";
|
|
||||||
|
|
||||||
inputs.impermanence.url = "github:nix-community/impermanence";
|
|
||||||
|
|
||||||
outputs = { self, ... }: {
|
|
||||||
|
|
||||||
module = { config, lib, ... }: import ./. { inherit config lib self; };
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user