Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 408ccf7b22 | |||
| db536c6b80 | |||
| 88972aa4a2 | |||
| d1712461f6 | |||
| 47cd47b4f2 | |||
| 29a224e6bd | |||
| 4e3838b97f |
8 changed files with 90 additions and 33 deletions
|
|
@ -7,6 +7,7 @@ let
|
||||||
mods = with self.nixosModules; [
|
mods = with self.nixosModules; [
|
||||||
agenix
|
agenix
|
||||||
base_services
|
base_services
|
||||||
|
bluetooth
|
||||||
boot
|
boot
|
||||||
core
|
core
|
||||||
chromium
|
chromium
|
||||||
|
|
@ -20,7 +21,6 @@ let
|
||||||
tlp
|
tlp
|
||||||
user
|
user
|
||||||
zsh
|
zsh
|
||||||
/etc/nixos/hardware-configuration.nix
|
|
||||||
];
|
];
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
@ -28,16 +28,9 @@ in
|
||||||
modules =
|
modules =
|
||||||
with self.nixosModules;
|
with self.nixosModules;
|
||||||
[
|
[
|
||||||
{
|
nvidia
|
||||||
config.networking.hostName = "nerv";
|
nerv
|
||||||
config.dualBoot = true;
|
nerv_quirks
|
||||||
config.hardware.nvidia = {
|
|
||||||
open = true;
|
|
||||||
modesetting.enable = true;
|
|
||||||
};
|
|
||||||
config.services.xserver.videoDrivers = [ "nvidia" ];
|
|
||||||
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
++ mods;
|
++ mods;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@
|
||||||
config.boot.loader = {
|
config.boot.loader = {
|
||||||
efi.canTouchEfiVariables = true;
|
efi.canTouchEfiVariables = true;
|
||||||
limine = {
|
limine = {
|
||||||
|
style.wallpapers = [ ];
|
||||||
enable = true;
|
enable = true;
|
||||||
extraEntries = lib.mkIf config.dualBoot ''
|
extraEntries = lib.mkIf config.dualBoot ''
|
||||||
/Windows 11
|
/Windows 11
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,6 @@
|
||||||
{ ... }: {
|
{ ... }: {
|
||||||
flake.nixosModules.core = { pkgs, ... }: {
|
flake.nixosModules.core = { pkgs, ... }: {
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
hardware.bluetooth = {
|
|
||||||
enable = true;
|
|
||||||
powerOnBoot = false;
|
|
||||||
input.General.ClassicBondedOnly = false;
|
|
||||||
settings = {
|
|
||||||
General = {
|
|
||||||
Experimental = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
time.timeZone = "Europe/Berlin";
|
time.timeZone = "Europe/Berlin";
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
i18n.extraLocaleSettings = {
|
i18n.extraLocaleSettings = {
|
||||||
|
|
|
||||||
|
|
@ -4,27 +4,23 @@
|
||||||
programs.niri.enable = true;
|
programs.niri.enable = true;
|
||||||
services.displayManager.gdm.enable = true;
|
services.displayManager.gdm.enable = true;
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
stow
|
|
||||||
ufetch
|
ufetch
|
||||||
rbw
|
rbw
|
||||||
pinentry-gnome3
|
pinentry-gnome3
|
||||||
nixd
|
nixd
|
||||||
nixfmt
|
nixfmt
|
||||||
xournalpp
|
xournalpp
|
||||||
rnote
|
|
||||||
btop
|
btop
|
||||||
chromium
|
chromium
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
adw-gtk3
|
|
||||||
polkit_gnome
|
polkit_gnome
|
||||||
xwayland-satellite
|
xwayland-satellite
|
||||||
nemo
|
nautilus
|
||||||
libwacom
|
libwacom
|
||||||
devenv
|
devenv
|
||||||
kdePackages.qt6ct
|
kdePackages.qt6ct
|
||||||
gcc
|
gcc
|
||||||
clang-tools
|
clang-tools
|
||||||
clang
|
|
||||||
gdb
|
gdb
|
||||||
gnumake
|
gnumake
|
||||||
libreoffice
|
libreoffice
|
||||||
|
|
@ -32,15 +28,8 @@
|
||||||
jq
|
jq
|
||||||
nmgui
|
nmgui
|
||||||
kdePackages.qtdeclarative
|
kdePackages.qtdeclarative
|
||||||
gsettings-desktop-schemas
|
|
||||||
glib
|
|
||||||
];
|
];
|
||||||
fonts.packages = with pkgs; [
|
fonts.packages = with pkgs; [
|
||||||
jetbrains-mono
|
|
||||||
nerd-fonts.jetbrains-mono
|
|
||||||
noto-fonts
|
|
||||||
noto-fonts-cjk-sans
|
|
||||||
noto-fonts-color-emoji
|
|
||||||
inter
|
inter
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
15
modules/system/hardware/bluetooth.nix
Normal file
15
modules/system/hardware/bluetooth.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
flake.nixosModules.bluetooth = {
|
||||||
|
hardware.bluetooth = {
|
||||||
|
enable = true;
|
||||||
|
powerOnBoot = false;
|
||||||
|
input.General.ClassicBondedOnly = false;
|
||||||
|
settings = {
|
||||||
|
General = {
|
||||||
|
Experimental = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
18
modules/system/hardware/nvidia.nix
Normal file
18
modules/system/hardware/nvidia.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
{ ... }: {
|
||||||
|
flake.nixosModules.nvidia = { config, ... }: {
|
||||||
|
# Enable OpenGL
|
||||||
|
hardware.graphics = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
services.xserver.videoDrivers = [ "nvidia" ];
|
||||||
|
hardware.nvidia = {
|
||||||
|
modesetting.enable = true;
|
||||||
|
powerManagement.enable = false;
|
||||||
|
powerManagement.finegrained = false;
|
||||||
|
open = true;
|
||||||
|
nvidiaSettings = true;
|
||||||
|
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
43
modules/system/hosts/nerv/hardware-configuration.nix
Normal file
43
modules/system/hosts/nerv/hardware-configuration.nix
Normal file
|
|
@ -0,0 +1,43 @@
|
||||||
|
# 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.
|
||||||
|
{ lib, config, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
flake.nixosModules.nerv = { config, ... }: {
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [
|
||||||
|
"nvme"
|
||||||
|
"xhci_pci"
|
||||||
|
"ahci"
|
||||||
|
"usbhid"
|
||||||
|
"usb_storage"
|
||||||
|
"sd_mod"
|
||||||
|
];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
fileSystems."/" = {
|
||||||
|
device = "/dev/disk/by-uuid/48badf37-8adb-48d0-b861-fbf71cbaddd7";
|
||||||
|
fsType = "xfs";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/boot" = {
|
||||||
|
device = "/dev/disk/by-uuid/DC66-ACA6";
|
||||||
|
fsType = "vfat";
|
||||||
|
options = [
|
||||||
|
"fmask=0077"
|
||||||
|
"dmask=0077"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [
|
||||||
|
{ device = "/dev/disk/by-uuid/3b0e79c9-e3d8-4b58-99b4-63c98309ac85"; }
|
||||||
|
];
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
8
modules/system/hosts/nerv/quirks.nix
Normal file
8
modules/system/hosts/nerv/quirks.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
{ ... }: {
|
||||||
|
flake.nixosModules.nerv_quirks = { config, ... }: {
|
||||||
|
config = {
|
||||||
|
networking.hostName = "nerv";
|
||||||
|
dualBoot = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue