feat(homes): Move graphical nixos config to nixos.nix
This commit is contained in:
parent
b085f92226
commit
0f3694c82d
3 changed files with 231 additions and 221 deletions
|
@ -50,12 +50,12 @@ in
|
|||
};
|
||||
};
|
||||
flake.modules.homeManager.default =
|
||||
{ config, osConfig, ... }:
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
imports = [ inputs.impermanence.homeManagerModules.impermanence ];
|
||||
options.persistDirs = mkOpts "directory" { };
|
||||
options.persistFiles = mkOpts "file" { };
|
||||
config = mkIf (osConfig.nixpkgs.hostPlatform == "x86_64-linux") {
|
||||
config = mkIf (pkgs.system == "x86_64-linux") {
|
||||
home.persistence."/persist${config.home.homeDirectory}" = {
|
||||
allowOther = true;
|
||||
directories = config.persistDirs;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue