feat(homes): Move graphical nixos config to nixos.nix

This commit is contained in:
Mohammad Rafiq 2025-07-14 02:13:00 +08:00
parent b085f92226
commit 0f3694c82d
No known key found for this signature in database
3 changed files with 231 additions and 221 deletions

View file

@ -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;