mirror of
https://github.com/kaesaecracker/nixos-configuration.git
synced 2025-01-18 18:40:14 +01:00
setup desktop with nixos
This commit is contained in:
parent
4585904bdc
commit
be2290371c
|
@ -6,5 +6,6 @@ When adding a new host:
|
||||||
3. copy an existing devicename.nix
|
3. copy an existing devicename.nix
|
||||||
5. change import to `new-devicename-hardware-configuration.nix`
|
5. change import to `new-devicename-hardware-configuration.nix`
|
||||||
6. set the hostname and optional imports in `new-devicename.nix`
|
6. set the hostname and optional imports in `new-devicename.nix`
|
||||||
7. `ln -s ./new-devicename.nix /etc/nixos/configuration`
|
7. `ln -s ./new-devicename.nix /etc/nixos/configuration.nix`
|
||||||
8. apply
|
8. `sudo nix-channel --add https://github.com/nix-community/home-manager/archive/release-23.05.tar.gz home-manager`
|
||||||
|
9. apply
|
||||||
|
|
|
@ -18,10 +18,7 @@
|
||||||
|
|
||||||
boot.loader = {
|
boot.loader = {
|
||||||
systemd-boot.enable = true;
|
systemd-boot.enable = true;
|
||||||
efi = {
|
efi.canTouchEfiVariables = true;
|
||||||
canTouchEfiVariables = true;
|
|
||||||
efiSysMountPoint = "/boot/efi";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
|
|
11
gnome.nix
11
gnome.nix
|
@ -31,4 +31,15 @@
|
||||||
gnome-music
|
gnome-music
|
||||||
pkgs.gnome-connections
|
pkgs.gnome-connections
|
||||||
];
|
];
|
||||||
|
|
||||||
|
home-manager.users.vinzenz = {
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
gnome.gpaste
|
||||||
|
amberol
|
||||||
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
2
home.nix
2
home.nix
|
@ -38,9 +38,7 @@
|
||||||
# gnome-secrets
|
# gnome-secrets
|
||||||
tdesktop
|
tdesktop
|
||||||
lutris
|
lutris
|
||||||
amberol
|
|
||||||
simple-scan
|
simple-scan
|
||||||
gnome.gpaste
|
|
||||||
wireguard-tools
|
wireguard-tools
|
||||||
# steamlink
|
# steamlink
|
||||||
element-desktop
|
element-desktop
|
||||||
|
|
29
kde.nix
Normal file
29
kde.nix
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
{
|
||||||
|
|
||||||
|
services = {
|
||||||
|
# Enable the KDE Plasma Desktop Environment.
|
||||||
|
xserver = {
|
||||||
|
displayManager.sddm.enable = true;
|
||||||
|
desktopManager.plasma5.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
home-manager.users.vinzenz = {
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
home = {
|
||||||
|
packages = with pkgs; [
|
||||||
|
];
|
||||||
|
};
|
||||||
|
services.kdeconnect = {
|
||||||
|
enable = true;
|
||||||
|
indicator = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
|
@ -1,6 +1,3 @@
|
||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
|
||||||
# and may be overwritten by future invocations. Please make changes
|
|
||||||
# to /etc/nixos/configuration.nix instead.
|
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
|
@ -12,10 +9,13 @@
|
||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = ["xhci_pci" "ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sdhci_pci"];
|
boot = {
|
||||||
boot.initrd.kernelModules = [];
|
initrd.availableKernelModules = ["xhci_pci" "ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sdhci_pci"];
|
||||||
boot.kernelModules = ["kvm-intel"];
|
initrd.kernelModules = [];
|
||||||
boot.extraModulePackages = [];
|
kernelModules = ["kvm-intel"];
|
||||||
|
extraModulePackages = [];
|
||||||
|
loader.efi.efiSysMountPoint = "/boot/efi";
|
||||||
|
};
|
||||||
|
|
||||||
fileSystems."/" = {
|
fileSystems."/" = {
|
||||||
device = "/dev/disk/by-uuid/34cb86c4-8823-4785-9672-92ef0bcd5eaf";
|
device = "/dev/disk/by-uuid/34cb86c4-8823-4785-9672-92ef0bcd5eaf";
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
{...}: {
|
|
||||||
networking.hostName = "vinzenz-pc2";
|
|
||||||
|
|
||||||
imports = [
|
|
||||||
./vinzenz-pc2-hardware-configuration.nix
|
|
||||||
./common.nix
|
|
||||||
./kde.nix
|
|
||||||
];
|
|
||||||
}
|
|
46
vinzenz-pc3-hardware-configuration.nix
Normal file
46
vinzenz-pc3-hardware-configuration.nix
Normal file
|
@ -0,0 +1,46 @@
|
||||||
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
|
{
|
||||||
|
imports =
|
||||||
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||||
|
];
|
||||||
|
|
||||||
|
boot = {
|
||||||
|
initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "sd_mod" ]; # "usb_storage"
|
||||||
|
initrd.kernelModules = [ ];
|
||||||
|
kernelModules = [ "kvm-amd" ];
|
||||||
|
extraModulePackages = [ ];
|
||||||
|
loader.efi.efiSysMountPoint = "/boot";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems = {
|
||||||
|
"/" =
|
||||||
|
{ device = "/dev/disk/by-uuid/0e9c983a-e733-447e-8181-f41d6670c4b8";
|
||||||
|
fsType = "btrfs";
|
||||||
|
options = [ "subvol=@" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
"/boot" =
|
||||||
|
{ device = "/dev/disk/by-uuid/AF67-8F16";
|
||||||
|
fsType = "vfat";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/sdmanjaro" =
|
||||||
|
{ device = "/dev/disk/by-uuid/b6b4c0b8-4b16-4a72-a18d-d7923a2bb532";
|
||||||
|
fsType = "btrfs";
|
||||||
|
options = [ "subvol=@" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [ ];
|
||||||
|
|
||||||
|
# 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.eno1.useDHCP = lib.mkDefault true;
|
||||||
|
# networking.interfaces.wlp5s0.useDHCP = lib.mkDefault true;
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
}
|
9
vinzenz-pc3.nix
Normal file
9
vinzenz-pc3.nix
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{...}: {
|
||||||
|
networking.hostName = "vinzenz-pc3";
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
./vinzenz-pc3-hardware-configuration.nix
|
||||||
|
./common.nix
|
||||||
|
./kde.nix
|
||||||
|
];
|
||||||
|
}
|
Loading…
Reference in a new issue