Added configuration for desktop
This commit is contained in:
42
hosts/desktop/default.nix
Normal file
42
hosts/desktop/default.nix
Normal file
@@ -0,0 +1,42 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
#../../modules/system/desktop/hyprland.nix
|
||||
../../modules/system/desktop/plasma.nix
|
||||
../../modules/system/desktop/nvidia.nix
|
||||
../../modules/system/programs/sunshine.nix
|
||||
#../../modules/system/programs/syncthing.nix
|
||||
../../modules/system/programs/thunar.nix
|
||||
../../modules/system/utils/common.nix
|
||||
../../modules/system/utils/firewall.nix
|
||||
../../modules/system/utils/fprint.nix
|
||||
../../modules/system/utils/garbage-collection.nix
|
||||
../../modules/system/utils/locale.nix
|
||||
];
|
||||
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
|
||||
# Bootloader.
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.loader.grub = {
|
||||
enable = true;
|
||||
efiSupport = true;
|
||||
device = "nodev";
|
||||
};
|
||||
|
||||
networking.hostName = "xv-desktop"; # Define your hostname.
|
||||
networking.interfaces.enp7s0.wakeOnLan.enable = true;
|
||||
|
||||
users.users.xeovalyte = {
|
||||
isNormalUser = true;
|
||||
description = "Timo Boomers";
|
||||
extraGroups = [ "networkmanager" "wheel" "dialout" ];
|
||||
};
|
||||
|
||||
services.printing.enable = true;
|
||||
|
||||
system.stateVersion = "23.11";
|
||||
|
||||
}
|
39
hosts/desktop/hardware-configuration.nix
Normal file
39
hosts/desktop/hardware-configuration.nix
Normal file
@@ -0,0 +1,39 @@
|
||||
# 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 = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/66480545-d8cb-4853-be36-bb52526a2293";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/1F0A-7888";
|
||||
fsType = "vfat";
|
||||
};
|
||||
|
||||
swapDevices =
|
||||
[ { device = "/dev/disk/by-uuid/e67f24cf-f7a6-4a92-87cc-0ae047dbb4df"; }
|
||||
];
|
||||
|
||||
# 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.enp7s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
30
hosts/desktop/home.nix
Normal file
30
hosts/desktop/home.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
#../../modules/home/desktop/hyprland
|
||||
../../modules/home/programs/common.nix
|
||||
../../modules/home/programs/firefox.nix
|
||||
../../modules/home/programs/kitty.nix
|
||||
../../modules/home/programs/neovim
|
||||
../../modules/home/programs/git.nix
|
||||
../../modules/home/programs/ssh.nix
|
||||
../../modules/home/theme
|
||||
../../modules/home/theme/blueish.nix
|
||||
../../modules/home/utils/fonts.nix
|
||||
];
|
||||
|
||||
home = {
|
||||
username = "xeovalyte";
|
||||
homeDirectory = "/home/xeovalyte";
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
# Desktop Applications
|
||||
kdenlive
|
||||
gthumb
|
||||
unstable.arduino-ide
|
||||
];
|
||||
|
||||
home.stateVersion = "23.11";
|
||||
}
|
@@ -2,7 +2,7 @@
|
||||
|
||||
{
|
||||
imports = [
|
||||
../../modules/home/desktop/hyprland
|
||||
#../../modules/home/desktop/hyprland
|
||||
../../modules/home/programs/common.nix
|
||||
../../modules/home/programs/firefox.nix
|
||||
../../modules/home/programs/kitty.nix
|
||||
|
Reference in New Issue
Block a user