[vega] Sets up working system. [Eww] Moves config to be specific to drew-desktop

This commit is contained in:
2025-03-28 10:28:10 -07:00
parent c95d3419a2
commit b241ccd7d8
21 changed files with 23 additions and 50 deletions

View File

@@ -45,6 +45,11 @@
inherit self; inherit self;
inherit nixpkgs; inherit nixpkgs;
}; };
vega = (import ./system/hosts/vega) {
inherit inputs;
inherit self;
inherit nixpkgs;
};
}; };
darwinConfigurations = { darwinConfigurations = {
# Removed. See 133a3f82073f03e62cb3e7902c85fb3fc6292fe2 for when the # Removed. See 133a3f82073f03e62cb3e7902c85fb3fc6292fe2 for when the

View File

@@ -7,7 +7,6 @@
./nix.nix ./nix.nix
./rofi/rofi.nix ./rofi/rofi.nix
../apps/element.nix ../apps/element.nix
../apps/eww
./terminal.nix ./terminal.nix
]; ];

View File

@@ -6,6 +6,7 @@
"/features/gaming.nix" "/features/gaming.nix"
"/features/linux-desktop.nix" "/features/linux-desktop.nix"
"/features/notes.nix" "/features/notes.nix"
"./eww"
]; ];
home.stateVersion = "24.11"; home.stateVersion = "24.11";

View File

@@ -9,10 +9,6 @@
}: }:
{ {
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "vega"; # Define your hostname. networking.hostName = "vega"; # Define your hostname.
# Configure network proxy if necessary # Configure network proxy if necessary

View File

@@ -1,50 +1,31 @@
# Do not modify this file! It was generated by nixos-generate-config # Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes # and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead. # to /etc/nixos/configuration.nix instead.
{ { config, lib, pkgs, modulesPath, ... }:
config,
lib,
modulesPath,
...
}:
{ {
imports = [ imports =
(modulesPath + "/installer/scan/not-detected.nix") [ (modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = [ # Bootloader.
"xhci_pci" boot.loader.grub.enable = true;
"ahci" boot.loader.grub.device = "/dev/sda";
"nvme" boot.loader.grub.useOSProber = true;
"usbhid"
"usb_storage" boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ata_piix" "ahci" "usbhid" "usb_storage" "sd_mod" ];
"sd_mod"
];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = { fileSystems."/" =
device = "/dev/disk/by-uuid/343c0ac5-3973-49b3-964a-6ad90c36b89c"; { device = "/dev/disk/by-uuid/4981ad42-b108-4eb4-accb-b092813bd981";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/boot" = { swapDevices =
device = "/dev/disk/by-uuid/5F99-043D"; [ { device = "/dev/disk/by-uuid/f8868dce-6b32-45b7-bdf3-c9a34df1441d"; }
fsType = "vfat";
options = [
"fmask=0077"
"dmask=0077"
]; ];
};
fileSystems."/home" = {
device = "/dev/disk/by-uuid/28f4fb41-9414-4504-a767-c2e8bf5eb2c8";
fsType = "ext4";
};
swapDevices = [ ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # 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 # (the default) this is the recommended approach. When using systemd-networkd it's
@@ -52,7 +33,7 @@
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true; networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp3s0.useDHCP = lib.mkDefault true; # networking.interfaces.enp3s0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlo1.useDHCP = lib.mkDefault true; # networking.interfaces.wlp5s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
@@ -88,13 +69,4 @@
nvidiaSettings = true; nvidiaSettings = true;
}; };
# Add a udev rule to prevent the mouse from waking the system. Note that it
# has two entries depending on whether it's plugged in or not.
# Bus 001 Device 009: ID 046d:c539 Logitech, Inc. Lightspeed Receiver
# Bus 001 Device 015: ID 046d:c08d Logitech, Inc. G502 LIGHTSPEED Wireless Gaming Mouse
# Note: Still seem to require `sudo udevadm trigger` or reconnecting the device after the change.
services.udev.extraRules = ''
ACTION=="add|change", SUBSYSTEM=="usb", DRIVERS=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c539", ATTR{power/wakeup}="disabled"
ACTION=="add|change", SUBSYSTEM=="usb", DRIVERS=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c08d", ATTR{power/wakeup}="disabled"
'';
} }