added new user

This commit is contained in:
William 2025-02-09 18:09:41 -03:00
parent ddbae84c1a
commit a52a3b3a2e
7 changed files with 72 additions and 41 deletions

7
flake.lock generated
View file

@ -612,15 +612,16 @@
"tinted-zed": "tinted-zed" "tinted-zed": "tinted-zed"
}, },
"locked": { "locked": {
"lastModified": 1738025638, "lastModified": 1738278499,
"narHash": "sha256-nU3JpvIeEmcDHzQK4OTD1KXSoL/GOff6j9kuSO4X8eM=", "narHash": "sha256-q1SUyXSQ9znHTME53/vPLe+Ga3V1wW3X3gWfa8JsBUM=",
"owner": "danth", "owner": "danth",
"repo": "stylix", "repo": "stylix",
"rev": "55418e8fc8d4696af619176a22cefcfac56ad2ef", "rev": "b00c9f46ae6c27074d24d2db390f0ac5ebcc329f",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "danth", "owner": "danth",
"ref": "b00c9f46ae6c27074d24d2db390f0ac5ebcc329f",
"repo": "stylix", "repo": "stylix",
"type": "github" "type": "github"
} }

View file

@ -48,7 +48,7 @@
inputs.nixpkgs.follows = "nixpkgs-stable"; inputs.nixpkgs.follows = "nixpkgs-stable";
}; };
stylix.url = "github:danth/stylix"; stylix.url = "github:danth/stylix?ref=b00c9f46ae6c27074d24d2db390f0ac5ebcc329f";
}; };

View file

@ -63,6 +63,7 @@ in
p7zip p7zip
plasma-panel-colorizer plasma-panel-colorizer
plasticity plasticity
prismlauncher
protonup protonup
quickemu quickemu
quickgui quickgui
@ -84,7 +85,6 @@ in
packages = [ packages = [
"com.github.k4zmu2a.spacecadetpinball" "com.github.k4zmu2a.spacecadetpinball"
"com.github.tchx84.Flatseal" "com.github.tchx84.Flatseal"
"com.modrinth.ModrinthApp"
"com.steamgriddb.SGDBoop" "com.steamgriddb.SGDBoop"
"app.zen_browser.zen" "app.zen_browser.zen"
"io.github.Foldex.AdwSteamGtk" "io.github.Foldex.AdwSteamGtk"

View file

@ -1,6 +1,5 @@
{ {
inputs, inputs,
config,
pkgs, pkgs,
... ...
}: }:
@ -9,6 +8,13 @@
services = { services = {
printing.enable = true; printing.enable = true;
udev.packages = with pkgs; [ yubikey-personalization ]; udev.packages = with pkgs; [ yubikey-personalization ];
displayManager.sddm = {
enable = true;
wayland = {
enable = true;
compositor = "kwin";
};
};
desktopManager.plasma6.enable = true; desktopManager.plasma6.enable = true;
tailscale.useRoutingFeatures = "client"; tailscale.useRoutingFeatures = "client";
nginx = { nginx = {
@ -23,30 +29,30 @@
jack.enable = true; jack.enable = true;
wireplumber.enable = true; wireplumber.enable = true;
}; };
greetd = { # greetd = {
enable = true; # enable = true;
settings = { # settings = {
default_session.command = # default_session.command =
let # let
xSessions = "${config.services.displayManager.sessionData.desktops}/share/xsessions"; # xSessions = "${config.services.displayManager.sessionData.desktops}/share/xsessions";
wlSessions = "${config.services.displayManager.sessionData.desktops}/share/wayland-sessions"; # wlSessions = "${config.services.displayManager.sessionData.desktops}/share/wayland-sessions";
in # in
'' # ''
${pkgs.greetd.tuigreet}/bin/tuigreet \ # ${pkgs.greetd.tuigreet}/bin/tuigreet \
--remember \ # --remember \
--asterisks \ # --asterisks \
--time \ # --time \
--greeting "NixOS" \ # --greeting "NixOS" \
--sessions ${xSessions}:${wlSessions} # --sessions ${xSessions}:${wlSessions}
''; # '';
initial_session = { # initial_session = {
command = '' # command = ''
${pkgs.kdePackages.plasma-workspace}/bin/startplasma-wayland &> /dev/null # ${pkgs.kdePackages.plasma-workspace}/bin/startplasma-wayland &> /dev/null
''; # '';
user = "user"; # user = "user";
}; # };
}; # };
}; # };
}; };
xdg.portal = { xdg.portal = {

View file

@ -6,15 +6,24 @@
NIXOS_OZONE_WL = "1"; # Forces chromium and most electron apps to run in wayland NIXOS_OZONE_WL = "1"; # Forces chromium and most electron apps to run in wayland
}; };
users.users.user = { users.users = {
description = "William"; user = {
extraGroups = [ description = "William";
"uaccess" # Needed for HID dev uid = 1000;
"dialout" # Needed for arduino dev extraGroups = [
"libvirt" "uaccess" # Needed for HID dev
"libvirtd" "dialout" # Needed for arduino dev
"adbusers" "libvirt"
"i2c" "libvirtd"
]; "adbusers"
"i2c"
];
};
ewans = {
description = "Ewans";
isNormalUser = true;
uid = 1001;
hashedPassword = "$y$j9T$yHLUDvj6bDIP19dchU.aA/$OY4qeFNtx/GvI.VUYx4LapHiiVwi0MEvs8AT0HN7j58";
};
}; };
} }

View file

@ -55,7 +55,13 @@ in
environment.systemPackages = with pkgs; [ reboot-into-qubes ]; environment.systemPackages = with pkgs; [ reboot-into-qubes ];
# hardware.graphics.extraPackages = with pkgs; [ rocmPackages.clr.icd ]; hardware = {
amdgpu = {
opencl.enable = true;
amdvlk.enable = true;
};
graphics.extraPackages = with pkgs; [ rocmPackages.clr.icd ];
};
systemd.targets.hibernate.enable = false; # disable non-functional hibernate systemd.targets.hibernate.enable = false; # disable non-functional hibernate

View file

@ -25,4 +25,13 @@
}; };
}; };
}; };
gtk = {
gtk3.extraConfig = {
gtk-decoration-layout = "appmenu:none";
};
gtk4.extraConfig = {
gtk-decoration-layout = "appmenu:none";
};
};
} }