diff --git a/flake.lock b/flake.lock index a395d12..be5854f 100644 --- a/flake.lock +++ b/flake.lock @@ -39,120 +39,6 @@ "type": "github" } }, - "base16": { - "inputs": { - "fromYaml": "fromYaml" - }, - "locked": { - "lastModified": 1708890466, - "narHash": "sha256-LlrC09LoPi8OPYOGPXegD72v+//VapgAqhbOFS3i8sc=", - "owner": "SenchoPens", - "repo": "base16.nix", - "rev": "665b3c6748534eb766c777298721cece9453fdae", - "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-foot": { - "flake": false, - "locked": { - "lastModified": 1696725948, - "narHash": "sha256-65bz2bUL/yzZ1c8/GQASnoiGwaF8DczlxJtzik1c0AU=", - "owner": "tinted-theming", - "repo": "base16-foot", - "rev": "eedbcfa30de0a4baa03e99f5e3ceb5535c2755ce", - "type": "github" - }, - "original": { - "owner": "tinted-theming", - "repo": "base16-foot", - "type": "github" - } - }, - "base16-helix": { - "flake": false, - "locked": { - "lastModified": 1696727917, - "narHash": "sha256-FVrbPk+NtMra0jtlC5oxyNchbm8FosmvXIatkRbYy1g=", - "owner": "tinted-theming", - "repo": "base16-helix", - "rev": "dbe1480d99fe80f08df7970e471fac24c05f2ddb", - "type": "github" - }, - "original": { - "owner": "tinted-theming", - "repo": "base16-helix", - "type": "github" - } - }, - "base16-kitty": { - "flake": false, - "locked": { - "lastModified": 1665001328, - "narHash": "sha256-aRaizTYPpuWEcvoYE9U+YRX+Wsc8+iG0guQJbvxEdJY=", - "owner": "kdrag0n", - "repo": "base16-kitty", - "rev": "06bb401fa9a0ffb84365905ffbb959ae5bf40805", - "type": "github" - }, - "original": { - "owner": "kdrag0n", - "repo": "base16-kitty", - "type": "github" - } - }, - "base16-tmux": { - "flake": false, - "locked": { - "lastModified": 1696725902, - "narHash": "sha256-wDPg5elZPcQpu7Df0lI5O8Jv4A3T6jUQIVg63KDU+3Q=", - "owner": "tinted-theming", - "repo": "base16-tmux", - "rev": "c02050bebb60dbb20cb433cd4d8ce668ecc11ba7", - "type": "github" - }, - "original": { - "owner": "tinted-theming", - "repo": "base16-tmux", - "type": "github" - } - }, - "base16-vim": { - "flake": false, - "locked": { - "lastModified": 1716150083, - "narHash": "sha256-ZMhnNmw34ogE5rJZrjRv5MtG3WaqKd60ds2VXvT6hEc=", - "owner": "tinted-theming", - "repo": "base16-vim", - "rev": "6e955d704d046b0dc3e5c2d68a2a6eeffd2b5d3d", - "type": "github" - }, - "original": { - "owner": "tinted-theming", - "repo": "base16-vim", - "type": "github" - } - }, "flake-compat": { "flake": false, "locked": { @@ -169,55 +55,6 @@ "type": "github" } }, - "flake-compat_2": { - "flake": false, - "locked": { - "lastModified": 1673956053, - "narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=", - "owner": "edolstra", - "repo": "flake-compat", - "rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9", - "type": "github" - }, - "original": { - "owner": "edolstra", - "repo": "flake-compat", - "type": "github" - } - }, - "fromYaml": { - "flake": false, - "locked": { - "lastModified": 1689549921, - "narHash": "sha256-iX0pk/uB019TdBGlaJEWvBCfydT6sRq+eDcGPifVsCM=", - "owner": "SenchoPens", - "repo": "fromYaml", - "rev": "11fbbbfb32e3289d3c631e0134a23854e7865c84", - "type": "github" - }, - "original": { - "owner": "SenchoPens", - "repo": "fromYaml", - "type": "github" - } - }, - "gnome-shell": { - "flake": false, - "locked": { - "lastModified": 1713702291, - "narHash": "sha256-zYP1ehjtcV8fo+c+JFfkAqktZ384Y+y779fzmR9lQAU=", - "owner": "GNOME", - "repo": "gnome-shell", - "rev": "0d0aadf013f78a7f7f1dc984d0d812971864b934", - "type": "github" - }, - "original": { - "owner": "GNOME", - "ref": "46.1", - "repo": "gnome-shell", - "type": "github" - } - }, "home-manager": { "inputs": { "nixpkgs": [ @@ -238,27 +75,6 @@ "type": "github" } }, - "home-manager_2": { - "inputs": { - "nixpkgs": [ - "stylix", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1715930644, - "narHash": "sha256-W9pyM3/vePxrffHtzlJI6lDS3seANQ+Nqp+i58O46LI=", - "owner": "nix-community", - "repo": "home-manager", - "rev": "e3ad5108f54177e6520535768ddbf1e6af54b59d", - "type": "github" - }, - "original": { - "owner": "nix-community", - "repo": "home-manager", - "type": "github" - } - }, "impermanence": { "locked": { "lastModified": 1719091691, @@ -306,22 +122,6 @@ "type": "github" } }, - "nixpkgs_3": { - "locked": { - "lastModified": 1714912032, - "narHash": "sha256-clkcOIkg8G4xuJh+1onLG4HPMpbtzdLv4rHxFzgsH9c=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "ee4a6e0f566fe5ec79968c57a9c2c3c25f2cf41d", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "nixpkgs-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, "nur": { "locked": { "lastModified": 1719130969, @@ -344,36 +144,7 @@ "home-manager": "home-manager", "impermanence": "impermanence", "nixpkgs": "nixpkgs_2", - "nur": "nur", - "stylix": "stylix" - } - }, - "stylix": { - "inputs": { - "base16": "base16", - "base16-fish": "base16-fish", - "base16-foot": "base16-foot", - "base16-helix": "base16-helix", - "base16-kitty": "base16-kitty", - "base16-tmux": "base16-tmux", - "base16-vim": "base16-vim", - "flake-compat": "flake-compat_2", - "gnome-shell": "gnome-shell", - "home-manager": "home-manager_2", - "nixpkgs": "nixpkgs_3" - }, - "locked": { - "lastModified": 1718971834, - "narHash": "sha256-k+BjPJgjmG+u8VwyzjA6YxkoBn9tP1m19h0CQGc3iGM=", - "owner": "danth", - "repo": "stylix", - "rev": "97dcf3c216fe5fb19c406e39f265d3bc9b851377", - "type": "github" - }, - "original": { - "owner": "danth", - "repo": "stylix", - "type": "github" + "nur": "nur" } } }, diff --git a/flake.nix b/flake.nix index a3a345e..f5ee20c 100644 --- a/flake.nix +++ b/flake.nix @@ -15,11 +15,10 @@ inputs.nixpkgs.follows = "nixpkgs"; }; - stylix.url = "github:danth/stylix"; ags.url = "github:Aylur/ags"; }; - outputs = { nixpkgs, impermanence, home-manager, aagl, nur, stylix, ags, ... }: + outputs = { nixpkgs, impermanence, home-manager, aagl, nur, ags, ... }: { nixosConfigurations.workstation = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; @@ -32,7 +31,6 @@ } impermanence.nixosModules.impermanence nur.nixosModules.nur - stylix.nixosModules.stylix aagl.nixosModules.default ./machines/workstation/configuration.nix diff --git a/machines/workstation/configuration.nix b/machines/workstation/configuration.nix index 63740ca..2b1dbdf 100644 --- a/machines/workstation/configuration.nix +++ b/machines/workstation/configuration.nix @@ -22,7 +22,7 @@ networking = { hostName = "workstation"; enableIPv6 = false; - nameservers = [ "1.1.1.1" ]; + nameservers = [ "9.9.9.9" ]; defaultGateway = "192.168.2.1"; interfaces.enp34s0.ipv4.addresses = [{ address = "192.168.2.68"; diff --git a/users/hu/packages/firefox.nix b/users/hu/packages/firefox.nix index 2157084..499fc18 100644 --- a/users/hu/packages/firefox.nix +++ b/users/hu/packages/firefox.nix @@ -1,7 +1,6 @@ { config, pkgs, ... }: { - stylix.targets.firefox.enable = false; programs.firefox = { enable = true; package = pkgs.firefox-esr; diff --git a/users/hu/packages/foot.nix b/users/hu/packages/foot.nix index 02db6cb..f82eb07 100644 --- a/users/hu/packages/foot.nix +++ b/users/hu/packages/foot.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ ... }: { programs.foot = { @@ -6,6 +6,7 @@ settings = { main = { pad = "8x8 center"; + font = "Go Mono Nerd Font:size=12"; }; mouse = { @@ -15,6 +16,10 @@ scrollback = { lines = 10000; }; + + colors = { + alpha = 0.9; + }; }; }; } diff --git a/users/hu/packages/gtk.nix b/users/hu/packages/gtk.nix index c274785..c4d302d 100644 --- a/users/hu/packages/gtk.nix +++ b/users/hu/packages/gtk.nix @@ -1,16 +1,29 @@ { pkgs, ... }: { - stylix.targets.gtk.enable = false; + home.pointerCursor = { + gtk.enable = true; + name = "Bibata-Modern-Classic"; + package = pkgs.bibata-cursors; + size = 24; + }; + + dconf.settings = { + "org/gnome/desktop/interface" = { + color-scheme = "prefer-dark"; + }; + }; + gtk = { enable = true; theme = { - name = "Gruvbox-Dark-BL-LB"; - package = pkgs.gruvbox-gtk-theme; + name = "adw-gtk3-dark"; + package = pkgs.adw-gtk3; }; + iconTheme = { - name = "elementary"; - package = pkgs.pantheon.elementary-icon-theme; + name = "Adwaita"; + package = pkgs.gnome.adwaita-icon-theme; }; }; } diff --git a/users/hu/packages/hyprland.nix b/users/hu/packages/hyprland.nix index 2876728..6f37bd4 100644 --- a/users/hu/packages/hyprland.nix +++ b/users/hu/packages/hyprland.nix @@ -1,101 +1,107 @@ { ... }: { - wayland.windowManager.hyprland.enable = true; - wayland.windowManager.hyprland.systemd.enable = true; - wayland.windowManager.hyprland.systemd.variables = ["--all"]; - wayland.windowManager.hyprland.settings = { - "$mod" = "SUPER"; - "$terminal" = "foot"; - "$menu" = "rofi -show drun"; - - monitor = "DP-1,1920x1080@144,auto,1"; - - input = { - kb_layout = "gb:altgr-intl"; - follow_mouse = 1; - }; - - general = { - gaps_in = 5; - gaps_out = 10; - border_size = 1; - layout = "master"; - allow_tearing = true; - }; - - master = { - new_is_master = false; - mfact = 0.5; - }; - - decoration = { - rounding = 5; - blur = { - enabled = true; - size = 3; - passes = 1; - }; - }; - - bindm = [ - "$mod, mouse:272, movewindow" - "$mod, mouse:273, resizewindow" - ]; - - bind = [ - "$mod, P, exec, $menu" - "$mod, RETURN, exec, $terminal" - - "$mod SHIFT, C, killactive" - "$mod, SPACE, togglefloating" - "$mod SHIFT, M, exit," - - "$mod SHIFT, RETURN, layoutmsg, swapwithmaster" - "$mod SHIFT, h, layoutmsg, mfact -0.05" - "$mod SHIFT, l, layoutmsg, mfact +0.05" - - "$mod, h, movefocus, l" - "$mod, j, movefocus, d" - "$mod, k, movefocus, u" - "$mod, l, movefocus, r" - - "$mod, 1, workspace, 1" - "$mod, 2, workspace, 2" - "$mod, 3, workspace, 3" - "$mod, 4, workspace, 4" - "$mod, 5, workspace, 5" - "$mod, 6, workspace, 6" - "$mod, 7, workspace, 7" - "$mod, 8, workspace, 8" - "$mod, 9, workspace, 9" - - "$mod SHIFT, 1, movetoworkspace, 1" - "$mod SHIFT, 2, movetoworkspace, 2" - "$mod SHIFT, 3, movetoworkspace, 3" - "$mod SHIFT, 4, movetoworkspace, 4" - "$mod SHIFT, 5, movetoworkspace, 5" - "$mod SHIFT, 6, movetoworkspace, 6" - "$mod SHIFT, 7, movetoworkspace, 7" - "$mod SHIFT, 8, movetoworkspace, 8" - "$mod SHIFT, 9, movetoworkspace, 9" - ]; - - exec-once = [ - "ags" - ]; - }; - services.hyprpaper = { enable = true; settings = { - ipc = "off"; + ipc = "on"; splash = false; preload = [ - "/nix/config/assets/wallpaper.png" + "/nix/config/assets/wallpaper.jpg" ]; wallpaper = [ - ",/nix/config/assets/wallpaper.png" + ",/nix/config/assets/wallpaper.jpg" + ]; + }; + }; + + wayland.windowManager.hyprland = { + enable = true; + systemd = { + enable = true; + variables = [ "--all" ]; + }; + settings = { + "$mod" = "SUPER"; + "$terminal" = "foot"; + "$menu" = "rofi -show drun"; + + monitor = "DP-1,1920x1080@144,auto,1"; + + input = { + kb_layout = "gb:intl"; + follow_mouse = 1; + }; + + general = { + gaps_in = 5; + gaps_out = 10; + border_size = 1; + layout = "master"; + allow_tearing = true; + "col.inactive_border" = "rgb(242424)"; + "col.active_border" = "rgb(3584E4)"; + }; + + master = { + new_is_master = false; + mfact = 0.5; + }; + + decoration = { + rounding = 5; + blur = { + enabled = true; + size = 3; + passes = 1; + }; + }; + + bindm = [ + "$mod, mouse:272, movewindow" + "$mod, mouse:273, resizewindow" + ]; + + bind = [ + "$mod, P, exec, $menu" + "$mod, RETURN, exec, $terminal" + + "$mod SHIFT, C, killactive" + "$mod, SPACE, togglefloating" + "$mod SHIFT, M, exit," + + "$mod SHIFT, RETURN, layoutmsg, swapwithmaster" + "$mod SHIFT, h, layoutmsg, mfact -0.05" + "$mod SHIFT, l, layoutmsg, mfact +0.05" + + "$mod, h, movefocus, l" + "$mod, j, movefocus, d" + "$mod, k, movefocus, u" + "$mod, l, movefocus, r" + + "$mod, 1, workspace, 1" + "$mod, 2, workspace, 2" + "$mod, 3, workspace, 3" + "$mod, 4, workspace, 4" + "$mod, 5, workspace, 5" + "$mod, 6, workspace, 6" + "$mod, 7, workspace, 7" + "$mod, 8, workspace, 8" + "$mod, 9, workspace, 9" + + "$mod SHIFT, 1, movetoworkspace, 1" + "$mod SHIFT, 2, movetoworkspace, 2" + "$mod SHIFT, 3, movetoworkspace, 3" + "$mod SHIFT, 4, movetoworkspace, 4" + "$mod SHIFT, 5, movetoworkspace, 5" + "$mod SHIFT, 6, movetoworkspace, 6" + "$mod SHIFT, 7, movetoworkspace, 7" + "$mod SHIFT, 8, movetoworkspace, 8" + "$mod SHIFT, 9, movetoworkspace, 9" + ]; + + exec-once = [ + "ags" ]; }; }; diff --git a/users/hu/packages/qt.nix b/users/hu/packages/qt.nix index a14177c..bf45b3b 100644 --- a/users/hu/packages/qt.nix +++ b/users/hu/packages/qt.nix @@ -1,10 +1,10 @@ -{ pkgs, ... }: +{ ... }: { qt = { enable = true; - style = { - - }; + platformTheme = "gnome"; + style = "adwaita-dark"; }; } + diff --git a/users/hu/packages/rofi.nix b/users/hu/packages/rofi.nix index 7b825bc..5981bbb 100644 --- a/users/hu/packages/rofi.nix +++ b/users/hu/packages/rofi.nix @@ -1,10 +1,9 @@ -{ config, pkgs, stylix, ... }: +{ pkgs, ... }: { - stylix.targets.rofi.enable = false; programs.rofi = { enable = true; package = pkgs.rofi-wayland; - theme = "gruvbox-dark-hard"; + theme = "sidebar"; }; } diff --git a/users/hu/packages/stylix.nix b/users/hu/packages/stylix.nix deleted file mode 100644 index b99c31b..0000000 --- a/users/hu/packages/stylix.nix +++ /dev/null @@ -1,40 +0,0 @@ -{ pkgs, ... }: - -{ - stylix = { - image = ../../../assets/wallpaper.png; - base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-hard.yaml"; - - fonts = { - monospace = { - package = pkgs.nerdfonts; - name = "Go Mono Nerd Font"; - }; - }; - - fonts = { - sizes = { - terminal = 13; - popups = 13; - applications = 10; - }; - }; - - cursor = { - package = pkgs.bibata-cursors; - name = "Bibata-Modern-Classic"; - size = 24; - }; - - targets = { - grub.enable = false; - gtk.enable = false; - }; - - opacity = { - terminal = 0.9; - popups = 0.9; - }; - }; -} - diff --git a/users/hu/user.nix b/users/hu/user.nix index 2f40a65..6a2babb 100644 --- a/users/hu/user.nix +++ b/users/hu/user.nix @@ -5,15 +5,12 @@ ../../packages/sets/communication.nix ../../packages/sets/games.nix ./persist.nix - ./packages/stylix.nix ./packages/nh.nix ./packages/zsh/zsh.nix ]; environment.variables = { - # home.sessionVariables didn't work here for some reason ZDOTDIR = "/home/hu/.config/zsh"; - EDITOR = "nvim"; }; @@ -24,8 +21,6 @@ hashedPasswordFile = "/nix/config/secrets/hu/pass"; }; - # TODO: Figure out a way to run scripts with the user session as a systemd service - home-manager = { useGlobalPkgs = true; useUserPackages = true; @@ -38,7 +33,6 @@ ./packages/zsh/zsh-home.nix ./packages/git.nix ./packages/gtk.nix - # ./packages/tmux.nix ./packages/hyprland.nix ./packages/foot.nix ./packages/firefox.nix