basic gui setup for desktop

This commit is contained in:
bogale 2026-10-08 18:28:20 +09:00
commit d0c1518df6
10 changed files with 228 additions and 114 deletions

View file

@ -1,18 +1,11 @@
{ config, lib, pkgs, ... }:
{
imports = [ ../common.nix ./hardware.nix ];
users.users = {
data = {
uid = 1256;
isNormalUser = true;
hashedPasswordFile = "/secrets/user/data-pw";
};
bogale = {
uid = 1551;
isNormalUser = true;
extraGroups = [ "wheel" ];
hashedPasswordFile = "/secrets/user/bogale-pw";
};
users.users.bogale = {
uid = 1551;
isNormalUser = true;
extraGroups = [ "wheel" ];
hashedPasswordFile = "/secrets/user/bogale-pw";
};
networking = {
hostName = "nixos-desktop";
@ -27,4 +20,9 @@
wifi-security.psk = "$BOGALE_5_PSK";
};
};
programs.niri.enable = true;
services.pipewire = {
enable = true;
pulse.enable = true;
};
}

24
desktop/hardware.nix Normal file
View file

@ -0,0 +1,24 @@
{ config, lib, pkgs, modulesPath, ... }:
{
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
boot = {
kernelModules = [ "kvm-amd" ];
initrd = {
luks.devices.root.device = "/dev/disk/by-uuid/70ac6613-2e6c-4817-a0ce-43a97efb8bab";
availableKernelModules = [ "nvme" "xhci_pci" "usb_storage" "sd_mod" "rtsx_usb_sdmmc" ];
};
};
fileSystems = {
"/" = {
fsType = "ext4";
device = "/dev/mapper/root";
};
"/boot" = {
fsType = "vfat";
device = "/dev/disk/by-uuid/2610-A769";
options = [ "fmask=0077" "dmask=0077" ];
};
};
}