Fix lithium config
This commit is contained in:
parent
ae425fcd72
commit
b477690d33
2 changed files with 34 additions and 30 deletions
|
@ -3,6 +3,7 @@
|
|||
imports = [ ../../disko/luks-zfs-impermanence.nix ];
|
||||
|
||||
custom = {
|
||||
platform.impermanence.enable = true;
|
||||
roles = {
|
||||
desktop.enable = true;
|
||||
development.enable = true;
|
||||
|
|
|
@ -10,8 +10,9 @@ in
|
|||
options.custom.roles.personalMachine.enable =
|
||||
lib.mkEnableOption "role for personal machines (desktop/laptop)";
|
||||
|
||||
config =
|
||||
(lib.mkIf cfg.enable {
|
||||
config = lib.mkIf cfg.enable (
|
||||
lib.mkMerge [
|
||||
{
|
||||
custom = {
|
||||
hardware = {
|
||||
keychron.enable = true;
|
||||
|
@ -29,16 +30,18 @@ in
|
|||
};
|
||||
};
|
||||
system.autoUpgrade.allowReboot = lib.mkForce false;
|
||||
})
|
||||
// (lib.mkIf config.custom.platform.impermanence.enable {
|
||||
}
|
||||
(lib.mkIf config.custom.platform.impermanence.enable {
|
||||
# TODO Remove this temporary impermanence setup in favor of a more detailed one
|
||||
environment.persistence."/persist".directories = [
|
||||
{
|
||||
directory = config.users.users.vili.home;
|
||||
directory = "/home/vili";
|
||||
user = config.users.users.vili.name;
|
||||
group = config.users.users.vili.group;
|
||||
mode = "u=rwx,g=,o=";
|
||||
}
|
||||
];
|
||||
});
|
||||
})
|
||||
]
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue