drone: add system + kde

This commit is contained in:
41666 2023-12-23 17:44:54 -05:00
parent fa2dd299d7
commit ae61694ecc
4 changed files with 81 additions and 1 deletions

11
nixos/features/kde.nix Normal file
View file

@ -0,0 +1,11 @@
{ pkgs, ... }: {
services.xserver = {
displayManager.sddm = {
enable = true;
wayland.enable = true;
};
desktopManager.plasma5.enable = true;
};
programs.xwayland.enable = true;
}

View file

@ -0,0 +1,16 @@
{ lib, config, pkgs, outputs, ... }: {
imports = [
./hardware-configuration.nix
../../client.nix
../../features/wifi.nix
../../features/kde.nix
../../features/tailscale.nix
../../features/sound
];
home-manager.users.noe = import ../../../home-manager/noe/hosts/drone.nix;
networking.hostName = "drone";
system.stateVersion = "24.05";
}

View file

@ -0,0 +1,45 @@
# 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, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/e0b8ad1f-0df0-4b4f-bbfa-1d25a72860b9";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/BE53-E543";
fsType = "vfat";
};
fileSystems."/tmp" =
{ device = "/dev/disk/by-uuid/bc0d58a9-3bd5-4dd6-8087-3cc22324ba11";
fsType = "ext4";
};
swapDevices =
[ { device = "/dev/disk/by-uuid/52ede635-0667-4039-ad12-6456b87d36cf"; }
];
# 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.wlo1.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}