mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
applicative: enable auto-login if not present
This commit is contained in:
@@ -6,9 +6,11 @@
|
|||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
users.users.applicative = {
|
users.users.applicative = {
|
||||||
name = "applicative";
|
name = "asg";
|
||||||
description = "<*>";
|
description = "Applicative Systems";
|
||||||
hashedPasswordFile = config.age.secrets.kfm-password.path;
|
hashedPasswordFile = config.age.secrets.kfm-password.path;
|
||||||
|
home = "/home/applicative";
|
||||||
|
uid = 1001;
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [
|
extraGroups = [
|
||||||
"pipewire"
|
"pipewire"
|
||||||
@@ -16,6 +18,45 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.displayManager.autoLogin.enable = false;
|
||||||
|
|
||||||
|
# if we have multiple users, they should be able to log in through a greeter
|
||||||
|
programs.regreet =
|
||||||
|
let
|
||||||
|
wallpaper =
|
||||||
|
pkgs.runCommand "textured-monochrome-wallpaper.png"
|
||||||
|
{
|
||||||
|
buildInputs = [ pkgs.imagemagick ];
|
||||||
|
}
|
||||||
|
''
|
||||||
|
magick -size 2560x1440 plasma:fractal \
|
||||||
|
-colorspace Gray \
|
||||||
|
-normalize \
|
||||||
|
-fill ${lib.escapeShellArg config.lib.stylix.colors.withHashtag.base00} -colorize 100% \
|
||||||
|
-attenuate 0.15 +noise Gaussian \
|
||||||
|
$out
|
||||||
|
'';
|
||||||
|
in
|
||||||
|
{
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
background = {
|
||||||
|
path = wallpaper;
|
||||||
|
fit = "Fill";
|
||||||
|
};
|
||||||
|
appearance.greeting_msg = "स्वागतम्";
|
||||||
|
widget.clock.format = "%F %H:%M";
|
||||||
|
};
|
||||||
|
font = {
|
||||||
|
inherit (config.stylix.fonts.sansSerif) name;
|
||||||
|
size = config.stylix.fonts.sizes.applications;
|
||||||
|
};
|
||||||
|
iconTheme = {
|
||||||
|
inherit (config.home-manager.users.me.gtk.iconTheme) package name;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
# to run nspawn in nix sandbox
|
# to run nspawn in nix sandbox
|
||||||
nix.settings = {
|
nix.settings = {
|
||||||
auto-allocate-uids = true;
|
auto-allocate-uids = true;
|
||||||
@@ -25,6 +66,8 @@
|
|||||||
"cgroups"
|
"cgroups"
|
||||||
];
|
];
|
||||||
extra-sandbox-paths = [ "/dev/net" ]; # needed for tests of VPNs
|
extra-sandbox-paths = [ "/dev/net" ]; # needed for tests of VPNs
|
||||||
|
|
||||||
|
trusted-users = [ config.users.users.applicative.name ];
|
||||||
};
|
};
|
||||||
|
|
||||||
services.restic.backups.niveum = {
|
services.restic.backups.niveum = {
|
||||||
|
|||||||
@@ -38,40 +38,10 @@ in
|
|||||||
pkgs.xdg-desktop-portal-hyprland
|
pkgs.xdg-desktop-portal-hyprland
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.regreet =
|
services.displayManager.autoLogin = {
|
||||||
let
|
enable = true;
|
||||||
wallpaper =
|
user = config.users.users.me.name;
|
||||||
pkgs.runCommand "textured-monochrome-wallpaper.png"
|
};
|
||||||
{
|
|
||||||
buildInputs = [ pkgs.imagemagick ];
|
|
||||||
}
|
|
||||||
''
|
|
||||||
magick -size 2560x1440 plasma:fractal \
|
|
||||||
-colorspace Gray \
|
|
||||||
-normalize \
|
|
||||||
-fill ${lib.escapeShellArg config.lib.stylix.colors.withHashtag.base00} -colorize 100% \
|
|
||||||
-attenuate 0.15 +noise Gaussian \
|
|
||||||
$out
|
|
||||||
'';
|
|
||||||
in
|
|
||||||
{
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
background = {
|
|
||||||
path = wallpaper;
|
|
||||||
fit = "Fill";
|
|
||||||
};
|
|
||||||
appearance.greeting_msg = "स्वागतम्";
|
|
||||||
widget.clock.format = "%F %H:%M";
|
|
||||||
};
|
|
||||||
font = {
|
|
||||||
inherit (config.stylix.fonts.sansSerif) name;
|
|
||||||
size = config.stylix.fonts.sizes.applications;
|
|
||||||
};
|
|
||||||
iconTheme = {
|
|
||||||
inherit (config.home-manager.users.me.gtk.iconTheme) package name;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
home-manager.users.me = import ./home-manager.nix {
|
home-manager.users.me = import ./home-manager.nix {
|
||||||
inherit lib pkgs config;
|
inherit lib pkgs config;
|
||||||
|
|||||||
Reference in New Issue
Block a user