top level config

This commit is contained in:
2025-08-23 11:14:17 -05:00
parent 21d4f0800a
commit f94627e858
6 changed files with 562 additions and 551 deletions

View File

@@ -1,5 +1,6 @@
{ config, lib, pkgs, ... }: { { config, lib, pkgs, ... }: {
config = {
home-manager = { home-manager = {
backupFileExtension = ".backup"; backupFileExtension = ".backup";
config = { config, lib, pkgs, inputs }: { config = { config, lib, pkgs, inputs }: {
@@ -23,4 +24,5 @@
etcBackupExtension = ".backup"; etcBackupExtension = ".backup";
motd = ""; motd = "";
}; };
};
} }

View File

@@ -15,6 +15,7 @@
]; ];
config = {
boot = { boot = {
kernelPackages = pkgs.linuxKernel.packages.linux_6_16; kernelPackages = pkgs.linuxKernel.packages.linux_6_16;
loader = { loader = {
@@ -60,7 +61,7 @@
services = { services = {
xserver = { xserver = {
#enable = true; #enable = true;
videoDrivers = ["nvidia"]; videoDrivers = ["nvidia"];
}; };
displayManager = { displayManager = {
@@ -205,4 +206,6 @@
fonts.packages = with pkgs; [ nerd-fonts.fira-code ]; fonts.packages = with pkgs; [ nerd-fonts.fira-code ];
};
} }

View File

@@ -10,6 +10,7 @@
inputs.sops-nix.nixosModules.sops inputs.sops-nix.nixosModules.sops
]; ];
config = {
nixpkgs.config = { nixpkgs.config = {
allowUnfree = true; allowUnfree = true;
@@ -78,10 +79,10 @@
system.stateVersion = "23.05"; # Did you read the comment? system.stateVersion = "23.05"; # Did you read the comment?
# Set your time zone. # Set your time zone.
time.timeZone = "America/Chicago"; time.timeZone = "America/Chicago";
# Select internationalisation properties. # Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8"; i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = { i18n.extraLocaleSettings = {
@@ -107,7 +108,7 @@
isNormalUser = true; isNormalUser = true;
description = "Thomas Jefferson"; description = "Thomas Jefferson";
initialPassword = "89453712"; initialPassword = "89453712";
#hashedPasswordFile = config.sops.secrets."nathan/pass".path; #hashedPasswordFile = config.sops.secrets."nathan/pass".path;
extraGroups = [ extraGroups = [
"wheel" "wheel"
"networkmanager" "networkmanager"
@@ -137,4 +138,5 @@
fonts.packages = with pkgs; [ nerd-fonts.fira-code ]; fonts.packages = with pkgs; [ nerd-fonts.fira-code ];
};
} }

View File

@@ -10,6 +10,7 @@
inputs.sops-nix.nixosModules.sops inputs.sops-nix.nixosModules.sops
]; ];
config = {
nixpkgs.config = { nixpkgs.config = {
allowUnfree = true; allowUnfree = true;
@@ -170,5 +171,6 @@
fonts.packages = with pkgs; [ nerd-fonts.fira-code ]; fonts.packages = with pkgs; [ nerd-fonts.fira-code ];
};
} }

View File

@@ -8,13 +8,14 @@
]; ];
config = {
hardware.nvidia.open = true; hardware.nvidia.open = true;
boot.isContainer = true; boot.isContainer = true;
services = { services = {
xserver = { xserver = {
#enable = true; #enable = true;
videoDrivers = ["nvidia"]; videoDrivers = ["nvidia"];
}; };
displayManager = { displayManager = {
@@ -29,12 +30,12 @@
}; };
systemd.extraConfig = "DefaultLimitNOFILE=2048"; systemd.extraConfig = "DefaultLimitNOFILE=2048";
/* /*
environment.sessionVariables = { environment.sessionVariables = {
WLR_BACKENDS = "headless"; WLR_BACKENDS = "headless";
WLR_LIBINPUT_NO_DEVICES = "1"; WLR_LIBINPUT_NO_DEVICES = "1";
}; };
*/ */
programs.zsh.enable = true; programs.zsh.enable = true;
environment.shells = with pkgs; [ zsh ]; environment.shells = with pkgs; [ zsh ];
users.defaultUserShell = pkgs.zsh; users.defaultUserShell = pkgs.zsh;
@@ -44,10 +45,10 @@
hostPlatform = "x86_64-linux"; hostPlatform = "x86_64-linux";
}; };
# Set your time zone. # Set your time zone.
time.timeZone = "America/Chicago"; time.timeZone = "America/Chicago";
# Select internationalisation properties. # Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8"; i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = { i18n.extraLocaleSettings = {
@@ -81,7 +82,7 @@
initialPassword = "7567"; initialPassword = "7567";
#hashedPasswordFile = config.sops.secrets."nathan/pass".path; #hashedPasswordFile = config.sops.secrets."nathan/pass".path;
extraGroups = [ extraGroups = [
"wheel" "wheel"
@@ -153,4 +154,5 @@
fonts.packages = with pkgs; [ nerd-fonts.fira-code ]; fonts.packages = with pkgs; [ nerd-fonts.fira-code ];
};
} }

View File

@@ -45,7 +45,7 @@
then (import ./configuration/${z} { then (import ./configuration/${z} {
config = {}; config = {};
inherit lib pkgs inputs modulesPath; inherit lib pkgs inputs modulesPath;
}) }).config
else null; else null;
test = if cfg == null then false test = if cfg == null then false
else if !(cfg ? sysconfig) then false else if !(cfg ? sysconfig) then false