refactor config with better structure
This commit is contained in:
1 parent
b80d6b9b1f
commit
269c49b2d5
32 files changed
+212
-149
No files matched your search
+24
-51
@@ -1,61 +1,34 @@
|
||||
{ pkgs, ... }:
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./graphics
|
||||
./audio.nix
|
||||
./fonts/fonts.nix
|
||||
./dm/sddm.nix
|
||||
./wm/niri.nix
|
||||
./inputs/wooting.nix
|
||||
./network/bluetooth.nix
|
||||
./network/usb.nix
|
||||
./steam/steam.nix
|
||||
|
||||
# System
|
||||
./system/boot.nix
|
||||
./system/nix.nix
|
||||
./system/networking.nix
|
||||
./system/locale.nix
|
||||
./system/users.nix
|
||||
|
||||
# Hardware
|
||||
./hardware/graphics.nix
|
||||
./hardware/nvidia.nix
|
||||
./hardware/audio.nix
|
||||
./hardware/bluetooth.nix
|
||||
./hardware/storage.nix
|
||||
./hardware/wooting.nix
|
||||
|
||||
# Desktop
|
||||
./desktop/fonts.nix
|
||||
./desktop/sddm.nix
|
||||
./desktop/niri.nix
|
||||
|
||||
# Programs
|
||||
./programs/gaming.nix
|
||||
./programs/obs.nix
|
||||
];
|
||||
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
networking.hostName = "prouk";
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
time.timeZone = "Europe/Paris";
|
||||
|
||||
users.users.prouk = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" ];
|
||||
};
|
||||
|
||||
programs.firefox.enable = true;
|
||||
programs.nix-ld.enable = true;
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
nixpkgs.config.permittedInsecurePackages = [
|
||||
"electron-40.10.5"
|
||||
];
|
||||
|
||||
nix.settings.experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
|
||||
# NO TOUCHY
|
||||
system.stateVersion = "26.05";
|
||||
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
|
||||
nix.settings = {
|
||||
trusted-users = [ "prouk" ];
|
||||
|
||||
substituters = [
|
||||
"https://cache.nixos.org"
|
||||
"https://nix-community.cachix.org"
|
||||
];
|
||||
trusted-public-keys = [
|
||||
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||
];
|
||||
};
|
||||
}
|
||||
File renamed without changes.
@@ -3,6 +3,6 @@
|
||||
programs.niri.enable = true;
|
||||
|
||||
environment.systemPackages = [
|
||||
inputs.xwayland-satellite.packages.${pkgs.system}.default
|
||||
inputs.xwayland-satellite.packages.${pkgs.stdenv.hostPlatform.system}.default
|
||||
];
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{ pkgs, lib, config, ... }:
|
||||
let
|
||||
# Same wallpaper niri displays (see home/config/default.nix).
|
||||
# Same wallpaper niri displays (see home/dotfiles.nix).
|
||||
wallpaper = ../../assets/wallpaper.png;
|
||||
|
||||
sddmTheme =
|
||||
@@ -1,10 +0,0 @@
|
||||
{ ... }:
|
||||
{
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
imports = [
|
||||
./nvidia.nix
|
||||
];
|
||||
}
|
||||
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,4 @@
|
||||
{ ... }:
|
||||
{
|
||||
hardware.graphics.enable = true;
|
||||
}
|
||||
@@ -12,12 +12,13 @@
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
egl-wayland
|
||||
lact
|
||||
libva-utils
|
||||
nvidia-vaapi-driver
|
||||
nvtopPackages.nvidia
|
||||
lact
|
||||
];
|
||||
|
||||
# LACT GPU control daemon
|
||||
systemd.packages = with pkgs; [ lact ];
|
||||
systemd.services.lactd.wantedBy = ["multi-user.target"];
|
||||
systemd.services.lactd.wantedBy = [ "multi-user.target" ];
|
||||
}
|
||||
File renamed without changes.
File renamed without changes.
@@ -4,7 +4,7 @@
|
||||
steam.enable = true;
|
||||
gamescope = {
|
||||
enable = true;
|
||||
capSysNice = false;
|
||||
capSysNice = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
boot = {
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
|
||||
loader = {
|
||||
systemd-boot.enable = true;
|
||||
efi.canTouchEfiVariables = true;
|
||||
# Skip the boot menu; hold Space while booting to show it.
|
||||
timeout = 0;
|
||||
# Keep /boot from filling up with old generations.
|
||||
systemd-boot.configurationLimit = 5;
|
||||
};
|
||||
|
||||
# Quiet boot
|
||||
consoleLogLevel = 3;
|
||||
initrd.verbose = false;
|
||||
kernelParams = [
|
||||
"quiet"
|
||||
"udev.log_level=3"
|
||||
"rd.udev.log_level=3"
|
||||
"systemd.show_status=auto"
|
||||
"rd.systemd.show_status=auto"
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ ... }:
|
||||
{
|
||||
time.timeZone = "Europe/Paris";
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{ ... }:
|
||||
{
|
||||
networking = {
|
||||
hostName = "prouk";
|
||||
networkmanager.enable = true;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
{ ... }:
|
||||
{
|
||||
nix.settings = {
|
||||
experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
trusted-users = [ "prouk" ];
|
||||
|
||||
substituters = [
|
||||
"https://cache.nixos.org"
|
||||
"https://nix-community.cachix.org"
|
||||
];
|
||||
trusted-public-keys = [
|
||||
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||
];
|
||||
};
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
# Housekeeping
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 14d";
|
||||
};
|
||||
nix.optimise.automatic = true;
|
||||
|
||||
# Run unpatched dynamic binaries.
|
||||
programs.nix-ld.enable = true;
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{ ... }:
|
||||
{
|
||||
users.users.prouk = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" ];
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user