setup desktop install of NixOS

This commit is contained in:
2024-12-23 22:40:33 +01:00
parent 93a12f9cde
commit 27bdc56019
5 changed files with 513 additions and 22 deletions
+1 -1
View File
@@ -173,7 +173,7 @@
ls = "ls --color=auto";
ll = "ls -l";
la = "ls -lA";
nixrebuild = "nixos-rebuild build --flake ~/personal/nixos#default && sudo nixos-rebuild switch --flake ~/personal/nixos#default";
nixrebuild = "nixos-rebuild build --flake ~/personal/nixos#darp8 && sudo nixos-rebuild switch --flake ~/personal/nixos#darp8";
nixbuild = "sudo nixos-rebuild switch --flake";
nixtest = "sudo nixos-rebuild test --flake";
new = "source $HOME/.bashrc";
+10 -6
View File
@@ -63,13 +63,14 @@
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --cmd Hyprland";
};
};
};
xserver.videoDrivers = [ "nvidia" ];
blueman.enable = true;
gvfs.enable = true;
auto-cpufreq.enable = true;
thermald.enable = true;
power-profiles-daemon.enable = false;
};
@@ -84,12 +85,15 @@
graphics = {
enable = true;
extraPackages = with pkgs;[
intel-compute-runtime
intel-media-driver
];
};
pulseaudio.enable = false;
system76.enableAll = true;
nvidia = {
modesetting.enable = true;
powerManagement.enable = true;
open = false;
nvidiaSettings = true;
};
};
fonts.packages = with pkgs; [
@@ -200,5 +204,5 @@
# and migrated your data accordingly.
#
# For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion .
system.stateVersion = "23.11"; # Did you read the comment?
system.stateVersion = "24.11"; # Did you read the comment?
}
+9 -12
View File
@@ -8,37 +8,34 @@
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" "sdhci_pci" ];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/c7704142-d0b9-4a85-af1c-ce776b895c0f";
fsType = "ext4";
};
fileSystems."/home" =
{ device = "/dev/disk/by-uuid/bf7180c8-72f0-483a-8306-821276eda3e5";
{ device = "/dev/disk/by-uuid/8944561b-c16b-49d4-80c5-97ce7ca5d65a";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/E27A-231B";
{ device = "/dev/disk/by-uuid/5D14-15D5";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices = [ ];
swapDevices =
[ { device = "/dev/disk/by-uuid/436edfc7-e5f0-4bca-a07a-4ed1e197df20"; }
];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp46s0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp0s20f3.useDHCP = lib.mkDefault true;
# networking.interfaces.eno1.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp3s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
}
+4 -3
View File
@@ -13,13 +13,13 @@
# desktop
../../modules/desktop/bluetooth.nix
../../modules/desktop/hyprland.nix
../../modules/desktop/hyprland-desktop.nix
];
# You should not change this value, even if you update Home Manager. If you do
# want to update the value, then make sure to first check the Home Manager
# release notes.
home.stateVersion = "23.11"; # Please read the comment before changing.
home.stateVersion = "24.11"; # Please read the comment before changing.
nixpkgs.config.allowUnfree = true;
home.packages = with pkgs; [
@@ -47,6 +47,7 @@
nautilus
netbeans
networkmanagerapplet
nvtop
nwg-look
openvpn
pamixer
@@ -173,7 +174,7 @@
ls = "ls --color=auto";
ll = "ls -l";
la = "ls -lA";
nixrebuild = "nixos-rebuild build --flake ~/personal/nixos#default && sudo nixos-rebuild switch --flake ~/personal/nixos#default";
nixrebuild = "nixos-rebuild build --flake ~/personal/nixos#desktop && sudo nixos-rebuild switch --flake ~/personal/nixos#desktop";
nixbuild = "sudo nixos-rebuild switch --flake";
nixtest = "sudo nixos-rebuild test --flake";
new = "source $HOME/.bashrc";