Jafner.net/dotfiles/systems/desktop/configuration.nix

97 lines
2.1 KiB
Nix

{ sys, pkgs, inputs, ... }: {
imports = [
./hardware.nix
./services.nix
./desktop-environment.nix
./terminal-environment.nix
./theme.nix
];
home-manager.backupFileExtension = "2025-08-01";
home-manager.users."${sys.username}" = {
nixGL = {
vulkan.enable = true;
defaultWrapper = "mesa";
installScripts = [ "mesa" ];
};
home = {
enableNixpkgsReleaseCheck = false;
preferXdgDirectories = true;
username = "${sys.username}";
homeDirectory = "/home/${sys.username}";
};
xdg.systemDirs.data = [
"/usr/share"
];
programs.home-manager.enable = true;
home.stateVersion = "24.11";
};
users.users."${sys.username}" = {
isNormalUser = true;
description = "${sys.username}";
extraGroups = [ "networkmanager" "wheel" "input" ];
};
security.sudo = {
enable = true;
extraRules = [{
commands = [
{
command = "ALL";
options = [ "NOPASSWD" ];
}
];
groups = [ "wheel" ];
}];
};
programs.ydotool = {
enable = true;
group = "wheel";
};
nixpkgs.config.allowUnfree = true;
programs.nix-ld.enable = true;
nix.settings.experimental-features = [ "nix-command" "flakes" ];
time.timeZone = "America/Los_Angeles";
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "en_US.UTF-8";
LC_IDENTIFICATION = "en_US.UTF-8";
LC_MEASUREMENT = "en_US.UTF-8";
LC_MONETARY = "en_US.UTF-8";
LC_NAME = "en_US.UTF-8";
LC_NUMERIC = "en_US.UTF-8";
LC_PAPER = "en_US.UTF-8";
LC_TELEPHONE = "en_US.UTF-8";
LC_TIME = "en_US.UTF-8";
};
fonts.packages = with pkgs; [
font-awesome
noto-fonts
noto-fonts-cjk-sans
noto-fonts-emoji
powerline-symbols
(pkgs.nerdfonts.override {fonts = ["NerdFontsSymbolsOnly"];})
];
system.autoUpgrade = {
enable = true;
flake = inputs.self.outPath;
flags = [
"--update-input"
"nixpkgs"
"-L"
];
dates = "04:00";
randomizedDelaySec = "30min";
};
# DO NOT CHANGE
system.stateVersion = "24.11";
}