This commit is contained in:
2026-07-25 21:08:05 -07:00
parent 68de58a80c
commit 760958e7a3
6 changed files with 78 additions and 8 deletions
+2 -1
View File
@@ -24,7 +24,8 @@ in
../common/users/Winter/default.nix ../common/users/Winter/default.nix
../common/global/default.nix ../common/global/default.nix
../common/features/Desktop.nix ../common/features/DesktopNiri.nix
../common/features/DesktopKDEPlasma.nix
../common/features/Applications.nix ../common/features/Applications.nix
#../common/features/servers/minecraft.nix #../common/features/servers/minecraft.nix
+2 -1
View File
@@ -29,7 +29,8 @@ in
../common/global/default.nix ../common/global/default.nix
../common/users/Winter/default.nix ../common/users/Winter/default.nix
../common/users/Ekisha/default.nix ../common/users/Ekisha/default.nix
../common/features/Desktop.nix ../common/features/DesktopNiri.nix
../common/features/DesktopKDEPlasma.nix
../common/features/Applications.nix ../common/features/Applications.nix
../common/features/servers/minecraft.nix ../common/features/servers/minecraft.nix
@@ -0,0 +1,20 @@
# This is your system's configuration file.
# Use this to configure your system environment (it replaces /etc/nixos/configuration.nix)
{
inputs,
lib,
config,
pkgs,
...
}: {
# --- Display & window managers ---
services.displayManager.sddm.enable = true;
services.displayManager.sddm.wayland.enable = true;
services.desktopManager.plasma6.enable = true;
programs.gamescope.enable = true;
environment.systemPackages = with pkgs; [
# --- KDE extras ---
kdePackages.karousel
];
}
@@ -10,13 +10,11 @@
# --- Display & window managers --- # --- Display & window managers ---
services.displayManager.sddm.enable = true; services.displayManager.sddm.enable = true;
services.displayManager.sddm.wayland.enable = true; services.displayManager.sddm.wayland.enable = true;
services.desktopManager.plasma6.enable = true;
programs.niri.enable = true; programs.niri.enable = true;
programs.skwd-wall.enable = true; programs.skwd-wall.enable = true;
programs.gamescope.enable = true; programs.gamescope.enable = true;
services.gnome.gnome-keyring.enable = true; services.gnome.gnome-keyring.enable = true;
security.pam.services.Winter.enableGnomeKeyring = true;
programs.seahorse.enable = true; programs.seahorse.enable = true;
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
@@ -29,7 +27,5 @@
mako mako
swaylock swaylock
inputs.awww.packages.${pkgs.stdenv.hostPlatform.system}.awww inputs.awww.packages.${pkgs.stdenv.hostPlatform.system}.awww
# --- KDE extras ---
kdePackages.karousel
]; ];
} }
+4 -2
View File
@@ -4,9 +4,10 @@
lib, lib,
... ...
}: let }: let
username = "Winter";
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups; ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
in { in {
users.users.Winter= { users.users.${username} = {
isNormalUser = true; isNormalUser = true;
extraGroups = ifTheyExist [ extraGroups = ifTheyExist [
"audio" "audio"
@@ -41,9 +42,10 @@ in {
#}; #};
# TODO: ensure correct paths # TODO: ensure correct paths
home-manager.users.Winter = import ../../../../home/Winter/${config.networking.hostName}.nix; home-manager.users.${username} = import ../../../../home/${username}/${config.networking.hostName}.nix;
security.pam.services = { security.pam.services = {
swaylock = {}; swaylock = {};
${username}.enableGnomeKeyring = true;
}; };
} }
+50
View File
@@ -0,0 +1,50 @@
{
pkgs,
config,
lib,
...
}: let
username = "";
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
in {
users.users.${username} = {
isNormalUser = true;
extraGroups = ifTheyExist [
"audio"
"deluge"
"docker"
"git"
"i2c"
"libvirtd"
"minecraft"
"mysql"
"wpa_supplicant"
"plugdev"
"podman"
"tss"
"video"
"wheel"
"wireshark"
];
# TODO: use as needed
#openssh.authorizedKeys.keys = lib.splitString "\n" (builtins.readFile ../../../../home/gabriel/ssh.pub);
#hashedPasswordFile = config.sops.secrets.gabriel-password.path;
#packages = [pkgs.home-manager];
};
# unused for now, may add sops later on
#sops.secrets = {
# gabriel-password = {
# sopsFile = ../../secrets.yaml;
# neededForUsers = true;
# };
#};
# TODO: ensure correct paths
home-manager.users.${username} = import ../../../../home/${username}/${config.networking.hostName}.nix;
security.pam.services = {
swaylock = {};
};
}