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"
},
"locked": {
"lastModified": 1738025638,
"narHash": "sha256-nU3JpvIeEmcDHzQK4OTD1KXSoL/GOff6j9kuSO4X8eM=",
"lastModified": 1738278499,
"narHash": "sha256-q1SUyXSQ9znHTME53/vPLe+Ga3V1wW3X3gWfa8JsBUM=",
"owner": "danth",
"repo": "stylix",
"rev": "55418e8fc8d4696af619176a22cefcfac56ad2ef",
"rev": "b00c9f46ae6c27074d24d2db390f0ac5ebcc329f",
"type": "github"
},
"original": {
"owner": "danth",
"ref": "b00c9f46ae6c27074d24d2db390f0ac5ebcc329f",
"repo": "stylix",
"type": "github"
}

View file

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

View file

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

View file

@ -6,8 +6,10 @@
NIXOS_OZONE_WL = "1"; # Forces chromium and most electron apps to run in wayland
};
users.users.user = {
users.users = {
user = {
description = "William";
uid = 1000;
extraGroups = [
"uaccess" # Needed for HID dev
"dialout" # Needed for arduino dev
@ -17,4 +19,11 @@
"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 ];
# 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

View file

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