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 ];
|
imports = [ ../../disko/luks-zfs-impermanence.nix ];
|
||||||
|
|
||||||
custom = {
|
custom = {
|
||||||
|
platform.impermanence.enable = true;
|
||||||
roles = {
|
roles = {
|
||||||
desktop.enable = true;
|
desktop.enable = true;
|
||||||
development.enable = true;
|
development.enable = true;
|
||||||
|
|
|
@ -10,35 +10,38 @@ in
|
||||||
options.custom.roles.personalMachine.enable =
|
options.custom.roles.personalMachine.enable =
|
||||||
lib.mkEnableOption "role for personal machines (desktop/laptop)";
|
lib.mkEnableOption "role for personal machines (desktop/laptop)";
|
||||||
|
|
||||||
config =
|
config = lib.mkIf cfg.enable (
|
||||||
(lib.mkIf cfg.enable {
|
lib.mkMerge [
|
||||||
custom = {
|
{
|
||||||
hardware = {
|
custom = {
|
||||||
keychron.enable = true;
|
hardware = {
|
||||||
onlykey.enable = true;
|
keychron.enable = true;
|
||||||
trackball.enable = true;
|
onlykey.enable = true;
|
||||||
|
trackball.enable = true;
|
||||||
|
};
|
||||||
|
programs = {
|
||||||
|
bitwarden.enable = true;
|
||||||
|
communication.enable = true;
|
||||||
|
firefox.enable = true;
|
||||||
|
i3.enable = true;
|
||||||
|
moonlight.enable = true;
|
||||||
|
redshift.enable = true;
|
||||||
|
usbAutoMount.enable = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
programs = {
|
system.autoUpgrade.allowReboot = lib.mkForce false;
|
||||||
bitwarden.enable = true;
|
}
|
||||||
communication.enable = true;
|
(lib.mkIf config.custom.platform.impermanence.enable {
|
||||||
firefox.enable = true;
|
# TODO Remove this temporary impermanence setup in favor of a more detailed one
|
||||||
i3.enable = true;
|
environment.persistence."/persist".directories = [
|
||||||
moonlight.enable = true;
|
{
|
||||||
redshift.enable = true;
|
directory = "/home/vili";
|
||||||
usbAutoMount.enable = true;
|
user = config.users.users.vili.name;
|
||||||
};
|
group = config.users.users.vili.group;
|
||||||
};
|
mode = "u=rwx,g=,o=";
|
||||||
system.autoUpgrade.allowReboot = lib.mkForce false;
|
}
|
||||||
})
|
];
|
||||||
// (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;
|
|
||||||
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