diff --git a/base.nix b/base.nix index 2633cfe..7c706c1 100644 --- a/base.nix +++ b/base.nix @@ -12,6 +12,10 @@ ./modules/modules.nix ]; system.stateVersion = "24.11"; + stylix = { + enable = true; + image = ./wallpaper.jpeg; + }; sops = { defaultSopsFormat = "yaml"; defaultSopsFile = ./secrets/secrets.yaml; @@ -22,6 +26,7 @@ }; }; home-manager = { + backupFileExtension = "hbckup"; useUserPackages = true; useGlobalPkgs = true; extraSpecialArgs = { diff --git a/flake.lock b/flake.lock index 388bf54..51957c4 100644 --- a/flake.lock +++ b/flake.lock @@ -33,6 +33,72 @@ "type": "github" } }, + "base16": { + "inputs": { + "fromYaml": "fromYaml" + }, + "locked": { + "lastModified": 1732200724, + "narHash": "sha256-+R1BH5wHhfnycySb7Sy5KbYEaTJZWm1h+LW1OtyhiTs=", + "owner": "SenchoPens", + "repo": "base16.nix", + "rev": "153d52373b0fb2d343592871009a286ec8837aec", + "type": "github" + }, + "original": { + "owner": "SenchoPens", + "repo": "base16.nix", + "type": "github" + } + }, + "base16-fish": { + "flake": false, + "locked": { + "lastModified": 1622559957, + "narHash": "sha256-PebymhVYbL8trDVVXxCvZgc0S5VxI7I1Hv4RMSquTpA=", + "owner": "tomyun", + "repo": "base16-fish", + "rev": "2f6dd973a9075dabccd26f1cded09508180bf5fe", + "type": "github" + }, + "original": { + "owner": "tomyun", + "repo": "base16-fish", + "type": "github" + } + }, + "base16-helix": { + "flake": false, + "locked": { + "lastModified": 1725860795, + "narHash": "sha256-Z2o8VBPW3I+KKTSfe25kskz0EUj7MpUh8u355Z1nVsU=", + "owner": "tinted-theming", + "repo": "base16-helix", + "rev": "7f795bf75d38e0eea9fed287264067ca187b88a9", + "type": "github" + }, + "original": { + "owner": "tinted-theming", + "repo": "base16-helix", + "type": "github" + } + }, + "base16-vim": { + "flake": false, + "locked": { + "lastModified": 1731949548, + "narHash": "sha256-XIDexXM66sSh5j/x70e054BnUsviibUShW7XhbDGhYo=", + "owner": "tinted-theming", + "repo": "base16-vim", + "rev": "61165b1632409bd55e530f3dbdd4477f011cadc6", + "type": "github" + }, + "original": { + "owner": "tinted-theming", + "repo": "base16-vim", + "type": "github" + } + }, "cpu-microcodes": { "flake": false, "locked": { @@ -66,6 +132,22 @@ "type": "github" } }, + "flake-compat_2": { + "flake": false, + "locked": { + "lastModified": 1696426674, + "narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=", + "owner": "edolstra", + "repo": "flake-compat", + "rev": "0f9255e01c2351cc7d116c072cb317785dd33b33", + "type": "github" + }, + "original": { + "owner": "edolstra", + "repo": "flake-compat", + "type": "github" + } + }, "flake-parts": { "inputs": { "nixpkgs-lib": "nixpkgs-lib" @@ -105,6 +187,43 @@ "type": "github" } }, + "flake-utils": { + "inputs": { + "systems": [ + "stylix", + "systems" + ] + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "fromYaml": { + "flake": false, + "locked": { + "lastModified": 1731966426, + "narHash": "sha256-lq95WydhbUTWig/JpqiB7oViTcHFP8Lv41IGtayokA8=", + "owner": "SenchoPens", + "repo": "fromYaml", + "rev": "106af9e2f715e2d828df706c386a685698f3223b", + "type": "github" + }, + "original": { + "owner": "SenchoPens", + "repo": "fromYaml", + "type": "github" + } + }, "gitignore": { "inputs": { "nixpkgs": [ @@ -127,6 +246,23 @@ "type": "github" } }, + "gnome-shell": { + "flake": false, + "locked": { + "lastModified": 1732369855, + "narHash": "sha256-JhUWbcYPjHO3Xs3x9/Z9RuqXbcp5yhPluGjwsdE2GMg=", + "owner": "GNOME", + "repo": "gnome-shell", + "rev": "dadd58f630eeea41d645ee225a63f719390829dc", + "type": "github" + }, + "original": { + "owner": "GNOME", + "ref": "47.2", + "repo": "gnome-shell", + "type": "github" + } + }, "home-manager": { "inputs": { "nixpkgs": [ @@ -147,6 +283,27 @@ "type": "github" } }, + "home-manager_2": { + "inputs": { + "nixpkgs": [ + "stylix", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1733085484, + "narHash": "sha256-dVmNuUajnU18oHzBQWZm1BQtANCHaqNuxTHZQ+GN0r8=", + "owner": "nix-community", + "repo": "home-manager", + "rev": "c1fee8d4a60b89cae12b288ba9dbc608ff298163", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "home-manager", + "type": "github" + } + }, "hyprcursor": { "inputs": { "hyprlang": [ @@ -510,6 +667,7 @@ "nixpkgs": "nixpkgs", "nur": "nur", "sops-nix": "sops-nix", + "stylix": "stylix", "ucodenix": "ucodenix" } }, @@ -533,6 +691,38 @@ "type": "github" } }, + "stylix": { + "inputs": { + "base16": "base16", + "base16-fish": "base16-fish", + "base16-helix": "base16-helix", + "base16-vim": "base16-vim", + "flake-compat": "flake-compat_2", + "flake-utils": "flake-utils", + "gnome-shell": "gnome-shell", + "home-manager": "home-manager_2", + "nixpkgs": [ + "nixpkgs" + ], + "systems": "systems_2", + "tinted-foot": "tinted-foot", + "tinted-kitty": "tinted-kitty", + "tinted-tmux": "tinted-tmux" + }, + "locked": { + "lastModified": 1734110168, + "narHash": "sha256-Q0eeLYn45ErXlqGQyXmLLHGe1mqnUiK0Y9wZRa1SNFI=", + "owner": "danth", + "repo": "stylix", + "rev": "a9e3779949925ef22f5a215c5f49cf520dea30b1", + "type": "github" + }, + "original": { + "owner": "danth", + "repo": "stylix", + "type": "github" + } + }, "systems": { "locked": { "lastModified": 1689347949, @@ -548,6 +738,71 @@ "type": "github" } }, + "systems_2": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, + "tinted-foot": { + "flake": false, + "locked": { + "lastModified": 1726913040, + "narHash": "sha256-+eDZPkw7efMNUf3/Pv0EmsidqdwNJ1TaOum6k7lngDQ=", + "owner": "tinted-theming", + "repo": "tinted-foot", + "rev": "fd1b924b6c45c3e4465e8a849e67ea82933fcbe4", + "type": "github" + }, + "original": { + "owner": "tinted-theming", + "repo": "tinted-foot", + "rev": "fd1b924b6c45c3e4465e8a849e67ea82933fcbe4", + "type": "github" + } + }, + "tinted-kitty": { + "flake": false, + "locked": { + "lastModified": 1716423189, + "narHash": "sha256-2xF3sH7UIwegn+2gKzMpFi3pk5DlIlM18+vj17Uf82U=", + "owner": "tinted-theming", + "repo": "tinted-kitty", + "rev": "eb39e141db14baef052893285df9f266df041ff8", + "type": "github" + }, + "original": { + "owner": "tinted-theming", + "repo": "tinted-kitty", + "rev": "eb39e141db14baef052893285df9f266df041ff8", + "type": "github" + } + }, + "tinted-tmux": { + "flake": false, + "locked": { + "lastModified": 1729501581, + "narHash": "sha256-1ohEFMC23elnl39kxWnjzH1l2DFWWx4DhFNNYDTYt54=", + "owner": "tinted-theming", + "repo": "tinted-tmux", + "rev": "f0e7f7974a6441033eb0a172a0342e96722b4f14", + "type": "github" + }, + "original": { + "owner": "tinted-theming", + "repo": "tinted-tmux", + "type": "github" + } + }, "treefmt-nix": { "inputs": { "nixpkgs": [ diff --git a/flake.nix b/flake.nix index a222989..8491930 100644 --- a/flake.nix +++ b/flake.nix @@ -2,14 +2,11 @@ description = "JawZ NixOS flake setup"; inputs = { nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; + ucodenix.url = "github:e-tho/ucodenix"; nur = { url = "github:nix-community/nur"; inputs.nixpkgs.follows = "nixpkgs"; }; - ucodenix = { - url = "github:e-tho/ucodenix"; - inputs.nixpkgs.follows = "nixpkgs"; - }; nix-gaming = { url = "github:fufexan/nix-gaming"; inputs.nixpkgs.follows = "nixpkgs"; @@ -26,6 +23,10 @@ url = "github:Mic92/sops-nix"; inputs.nixpkgs.follows = "nixpkgs"; }; + stylix = { + url = "github:danth/stylix"; + inputs.nixpkgs.follows = "nixpkgs"; + }; jawz-scripts = { url = "git+ssh://git@gitlab.com/CaptainJawZ/scripts-flake.git"; inputs.nixpkgs.follows = "nixpkgs"; @@ -55,6 +56,7 @@ ./hosts/${name}/configuration.nix inputs.nur.modules.nixos.default inputs.sops-nix.nixosModules.sops + inputs.stylix.nixosModules.stylix ]; }; in diff --git a/gnome.nix b/gnome.nix index cacea33..f2edede 100644 --- a/gnome.nix +++ b/gnome.nix @@ -1,4 +1,9 @@ -{ inputs, pkgs, ... }: +{ + inputs, + pkgs, + lib, + ... +}: { services = { gvfs.enable = true; @@ -6,7 +11,10 @@ xserver = { enable = true; displayManager.gdm.enable = true; - desktopManager.gnome.enable = true; + desktopManager = { + gnome.enable = true; + xterm.enable = lib.mkForce false; + }; }; }; environment.gnome.excludePackages = builtins.attrValues { diff --git a/home-manager.nix b/home-manager.nix index 9a60dca..4bb8af8 100644 --- a/home-manager.nix +++ b/home-manager.nix @@ -47,6 +47,7 @@ configFile."wgetrc".text = "hsts-file=\${XDG_CACHE_HOME}/wget-hsts"; }; programs = { + alacritty.enable = true; direnv = { enable = true; enableBashIntegration = true; diff --git a/hosts/workstation/hardware-configuration.nix b/hosts/workstation/hardware-configuration.nix index fd5c325..0b8df81 100644 --- a/hosts/workstation/hardware-configuration.nix +++ b/hosts/workstation/hardware-configuration.nix @@ -27,6 +27,18 @@ }; }; boot = { + plymouth.enable = true; + consoleLogLevel = 0; + loader.timeout = 0; + kernelParams = [ + "quiet" + "splash" + "boot.shell_on_fail" + "loglevel=3" + "rd.systemd.show_status=false" + "rd.udev.log_level=3" + "udev.log_priority=3" + ]; kernelPackages = pkgs.linuxPackages_zen; kernel.sysctl = { "vm.swappiness" = 80; @@ -43,15 +55,10 @@ efiSupport = true; useOSProber = true; enableCryptodisk = true; - extraEntries = '' - menuentry "Fedora" { - set root=(hd1,1) - chainloader /EFI/fedora/grub.efi - } - ''; }; }; initrd = { + verbose = false; secrets."/keyfile" = /etc/keyfile; availableKernelModules = [ "xhci_pci" diff --git a/modules/shell/tools.nix b/modules/shell/tools.nix index c59ba5b..d3511a3 100644 --- a/modules/shell/tools.nix +++ b/modules/shell/tools.nix @@ -8,7 +8,7 @@ options.my.shell.tools.enable = lib.mkEnableOption "enable"; config = lib.mkIf config.my.shell.tools.enable { home-manager.users.jawz = { - xdg.configFile."htop/htoprc".source = ../../dotfiles/htop/htoprc; + # xdg.configFile."htop/htoprc".source = ../../dotfiles/htop/htoprc; programs = { hstr.enable = true; htop = { @@ -41,10 +41,7 @@ }; bat = { enable = true; - config = { - pager = "less -FR"; - theme = "base16"; - }; + config.pager = "less -FR"; extraPackages = builtins.attrValues { inherit (pkgs.bat-extras) batman # man pages @@ -83,7 +80,6 @@ ; }; environment.variables = { - TEST = "AHHH"; HISTFILE = "\${XDG_STATE_HOME}/bash/history"; LESSHISTFILE = "-"; RIPGREP_CONFIG_PATH = "\${XDG_CONFIG_HOME}/ripgrep/ripgreprc"; diff --git a/overlay.nix b/overlay.nix index 72008c4..c1b5668 100644 --- a/overlay.nix +++ b/overlay.nix @@ -37,6 +37,6 @@ _final: prev: { handbrake = prev.handbrake.override { useGtk = true; }; discord-ptb = prev.discord.override { withVencord = true; }; ripgrep = prev.ripgrep.override { withPCRE2 = true; }; - papirus-icon-theme = prev.papirus-icon-theme.override { color = "yellow"; }; + papirus-icon-theme = prev.papirus-icon-theme.override { color = "green"; }; blender = prev.blender.override { cudaSupport = true; }; }