1
0
mirror of https://github.com/kmein/niveum synced 2026-03-19 03:21:10 +01:00

work profile

This commit is contained in:
2026-01-09 12:36:46 +01:00
parent 4701080f28
commit 58d355e682
2 changed files with 125 additions and 61 deletions

View File

@@ -105,67 +105,6 @@ in
supportedLocales = [ "all" ];
};
}
{
# services.displayManager.cosmic-greeter.enable = false;
services.desktopManager.cosmic.enable = true;
# services.system76-scheduler.enable = true;
xdg.portal = {
enable = true;
extraPortals = [ pkgs.xdg-desktop-portal-cosmic ];
};
users.users.applicative = {
name = "applicative";
description = "<*>";
hashedPasswordFile = config.age.secrets.kfm-password.path;
isNormalUser = true;
extraGroups = [
"pipewire"
"audio"
];
};
# to run nspawn in nix sandbox
nix.settings = {
auto-allocate-uids = true;
system-features = [ "uid-range" ];
experimental-features = [
"auto-allocate-uids"
"cgroups"
];
};
services.restic.backups.niveum = {
extraBackupArgs = [
"--exclude=${config.users.users.applicative.home}/src/nixpkgs/.git"
];
paths = [
config.users.users.applicative.home
];
};
security.sudo.extraRules = [
{
# still required for systemd-nspawn
users = [ config.users.users.applicative.name ];
commands = [ "ALL" ];
}
];
home-manager.users.applicative =
lib.recursiveUpdate
(import ./graphical/home-manager.nix {
inherit lib pkgs config;
})
{
xdg.enable = true;
home.stateVersion = "25.11";
services.hyprpaper.enable = false;
# programs.git = config.home-manager.users.me.programs.git;
# programs.alacritty = config.home-manager.users.me.programs.alacritty;
};
}
{
services.power-profiles-daemon.enable = true;
}
@@ -302,6 +241,7 @@ in
./vscode.nix
./wallpaper.nix
./zsh.nix
./applicative.nix
{
home-manager.users.me.home.file.".zshrc".text = ''
# nothing to see here