Skip to content

Commit 0c017a3

Browse files
authored
🎨 use stylix for gtk, ⬆️ flake lock update (#253)
* ⬆️ update flake * ♻️ use nixpkgs anyrun * use stylix for gtk * update lock * add vicinae.json * update flake * update flake lock * update flake lock * use nixpkgs-unstable * use overlays * update flake * update flake * remove git hyprland * remove rust-overlay * small updates * remove nixpkgs-unstable
1 parent 8bca762 commit 0c017a3

File tree

11 files changed

+244
-671
lines changed

11 files changed

+244
-671
lines changed

flake.lock

Lines changed: 149 additions & 625 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 35 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,6 @@
33

44
inputs = {
55
nixos-hardware.url = "github:NixOS/nixos-hardware";
6-
hyprland = {
7-
type = "git";
8-
url = "https://github.com/hyprwm/Hyprland";
9-
submodules = true;
10-
};
11-
hyprland-plugins = {
12-
url = "github:hyprwm/hyprland-plugins";
13-
inputs.hyprland.follows = "hyprland";
14-
};
156

167
nixpkgs-wayland.url = "github:nix-community/nixpkgs-wayland";
178
nix-vscode-extensions.url = "github:nix-community/nix-vscode-extensions";
@@ -56,9 +47,9 @@
5647
inputs.nixpkgs.follows = "nixpkgs";
5748
};
5849

59-
nixpkgs-vsCodeExtensionsPythonPinned = {
60-
url = "github:NixOs/nixpkgs?rev=2d068ae5c6516b2d04562de50a58c682540de9bf";
61-
};
50+
# nixpkgs-vsCodeExtensionsPythonPinned = {
51+
# url = "github:NixOs/nixpkgs?rev=2d068ae5c6516b2d04562de50a58c682540de9bf";
52+
# };
6253

6354
vicinae.url = "github:vicinaehq/vicinae";
6455
};
@@ -70,8 +61,6 @@
7061
pre-commit-hooks,
7162
home-manager,
7263
catppuccin,
73-
hyprland,
74-
hyprland-plugins,
7564
stylix,
7665
nixvim,
7766
sops-nix,
@@ -82,20 +71,21 @@
8271
} @ inputs: let
8372
system = "x86_64-linux";
8473

74+
overlays = [
75+
inputs.nixpkgs-wayland.overlay
76+
];
77+
8578
pkgs = import nixpkgs {
86-
inherit system;
87-
overlays = [
88-
inputs.nixpkgs-wayland.overlay
89-
];
79+
inherit system overlays;
9080
config = {
9181
allowUnfree = true;
9282
allowUnfreePredicate = _: true;
9383
};
9484
};
9585

96-
vsCodeExtensionsPythonPinnedPkgs = import inputs.nixpkgs-vsCodeExtensionsPythonPinned {
97-
inherit system;
98-
};
86+
# vsCodeExtensionsPythonPinnedPkgs = import inputs.nixpkgs-vsCodeExtensionsPythonPinned {
87+
# inherit system;
88+
# };
9989

10090
# zedNixPkgs = import inputs.nixpkgs-zed {
10191
# inherit system;
@@ -105,13 +95,21 @@
10595
dan = {
10696
isNormalUser = true;
10797
initialPassword = "pw123";
108-
extraGroups = ["wheel" "docker" "video" "networkmanager"];
98+
extraGroups = [
99+
"wheel"
100+
"docker"
101+
"video"
102+
"networkmanager"
103+
];
109104
packages = [pkgs.home-manager];
110105
};
111106
underdel = {
112107
isNormalUser = true;
113108
initialPassword = "pw123";
114-
extraGroups = ["video" "networkmanager"];
109+
extraGroups = [
110+
"video"
111+
"networkmanager"
112+
];
115113
packages = [pkgs.home-manager];
116114
};
117115
};
@@ -158,7 +156,10 @@
158156

159157
host-users-map = {
160158
DanPC = ["dan"];
161-
framnix = ["dan" "underdel"];
159+
framnix = [
160+
"dan"
161+
"underdel"
162+
];
162163
};
163164

164165
mkNixosConfiguration = {
@@ -180,7 +181,6 @@
180181
modules = [
181182
./modules/NixOS/shared
182183
./systems/x86_64-linux/${host}
183-
# hyprland.nixosModules.default
184184
catppuccin.nixosModules.catppuccin
185185
stylix.nixosModules.stylix
186186
{programs.hyprland.xwayland.enable = true;}
@@ -198,7 +198,7 @@
198198
inherit pkgs;
199199
extraSpecialArgs = {
200200
# these args are passed to the other home-manager modules
201-
inherit user inputs vsCodeExtensionsPythonPinnedPkgs; # zedNixpkgs
201+
inherit user inputs; # zedNixpkgs
202202
host-settings = import ./modules/settings/${host};
203203
userConfig = user-configs.${user};
204204
};
@@ -207,9 +207,10 @@
207207
./modules/home-manager/hosts/${host}
208208
./modules/home-manager/shared
209209
catppuccin.homeModules.catppuccin
210-
nixvim.homeManagerModules.nixvim
210+
nixvim.homeModules.nixvim
211211
sops-nix.homeManagerModules.sops
212212
vicinae.homeManagerModules.default
213+
stylix.homeModules.stylix
213214
];
214215
};
215216
in {
@@ -234,7 +235,9 @@
234235
# NixOS configuration entrypoint
235236
# Available through 'nixos-rebuild --flake .#<hostname>' (hosts are taken from the 'hosts' list above)
236237
nixosConfigurations =
237-
nixpkgs.lib.attrsets.mapAttrs (host: user-selection: mkNixosConfiguration {inherit host user-selection;})
238+
nixpkgs.lib.attrsets.mapAttrs (
239+
host: user-selection: mkNixosConfiguration {inherit host user-selection;}
240+
)
238241
host-users-map;
239242

240243
# Standalone home-manager configuration entrypoint
@@ -243,11 +246,13 @@
243246
homeConfigurations =
244247
pkgs.lib.concatMapAttrs (
245248
host: users:
246-
pkgs.lib.listToAttrs (pkgs.lib.map (user: {
249+
pkgs.lib.listToAttrs (
250+
pkgs.lib.map (user: {
247251
name = "${user}@${host}";
248252
value = mkHomeConfiguration {inherit host user;};
249253
})
250-
users)
254+
users
255+
)
251256
)
252257
host-users-map;
253258
};

justfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@ set positional-arguments
1414

1515
home host *args='':
1616
unbuffer home-manager --cores 12 --max-jobs 6 --flake .#{{user}}@{{host}} "${@:2}" |& grep -v '^$' | nom
17+
18+
pr:
19+
gh pr view --web

modules/NixOS/shared/default.nix

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
"https://pre-commit-hooks.cachix.org"
2727
"https://danielgafni.cachix.org"
2828
"https://nix-community.cachix.org"
29-
"https://anyrun.cachix.org"
3029
"https://chaotic-nyx.cachix.org/"
3130
"https://vicinae.cachix.org"
3231
];
@@ -36,7 +35,6 @@
3635
"pre-commit-hooks.cachix.org-1:Pkk3Panw5AW24TOv6kz3PvLhlH8puAsJTBbOPmBo7Rc="
3736
"danielgafni.cachix.org-1:ZdXJoJEqeiGGOf/MtAiocqj7/vvFbA2MWFVwopJ2WQM="
3837
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
39-
"anyrun.cachix.org-1:pqBobmOjI7nKlsUMV25u9QHa9btJK65/C8vnO3p346s="
4038
"chaotic-nyx.cachix.org-1:HfnXSw4pj95iI/n17rIDy40agHj12WfF+Gqk6SonIT8"
4139
"vicinae.cachix.org-1:1kDrfienkGHPYbkpNj1mWTr7Fm1+zcenzgTizIcI3oc="
4240
];
@@ -329,10 +327,6 @@
329327
hyprland = {
330328
enable = true;
331329
xwayland.enable = true;
332-
# set the flake package
333-
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
334-
# make sure to also set the portal package, so that they are in sync
335-
portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
336330
};
337331
zsh.enable = true;
338332
nix-ld = {
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
scheme: "Catppuccin Mocha"
2+
author: "https://github.com/catppuccin/catppuccin"
3+
base00: "1e1e2e" # base
4+
base01: "181825" # mantle
5+
base02: "313244" # surface0
6+
base03: "45475a" # surface1
7+
base04: "585b70" # surface2
8+
base05: "cdd6f4" # text
9+
base06: "f5e0dc" # rosewater
10+
base07: "b4befe" # lavender
11+
base08: "f38ba8" # red
12+
base09: "fab387" # peach
13+
base0A: "f9e2af" # yellow
14+
base0B: "a6e3a1" # green
15+
base0C: "94e2d5" # teal
16+
base0D: "89b4fa" # blue
17+
base0E: "cba6f7" # mauve
18+
base0F: "f2cdcd" # flamingo

modules/home-manager/shared/default.nix

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ in {
1717
./shell
1818
./environment.nix
1919
./fonts.nix
20+
./stylix.nix
2021
];
2122
home = {
2223
username = user;
@@ -45,10 +46,6 @@ in {
4546
enable = true;
4647
accent = cursorAccent; # affects HYPRCURSOR_THEME
4748
};
48-
gtk = {
49-
enable = true; # TODO: remove as it's deprecated
50-
icon.enable = true;
51-
};
5249
};
5350

5451
# default browser for electron-based apps
@@ -97,8 +94,8 @@ in {
9794
gtk = {
9895
enable = true;
9996
font = {
100-
name = "Cabin";
101-
package = pkgs.cabin;
97+
name = lib.mkForce "Cabin";
98+
package = lib.mkForce pkgs.cabin;
10299
};
103100

104101
gtk3.extraConfig = {
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# typically everything is styled with catppuccin-nix, but some programs are missing there (e.g. GTK) so we use Stylix for them instead
2+
{inputs, ...}: {
3+
stylix = {
4+
enable = true;
5+
autoEnable = false; # targets have to be enabled individually
6+
base16Scheme = ./base16-catppuccin-mocha.yaml;
7+
targets.gtk = {
8+
enable = true;
9+
};
10+
};
11+
}

modules/home-manager/shared/wayland/anyrun/default.nix

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
programs = {
77
anyrun = {
88
enable = true;
9-
package = inputs.anyrun.packages.${pkgs.system}.anyrun;
109
config = {
1110
# layer = "top";
1211
closeOnClick = true;
@@ -16,7 +15,7 @@
1615
# width = { fraction = 0.3; };
1716
plugins = [
1817
# An array of all the plugins you want, which either can be paths to the .so files, or their packages
19-
inputs.anyrun.packages.${pkgs.system}.applications
18+
"${pkgs.anyrun}/lib/libapplications.so"
2019
# file search
2120
# inputs.anyrun.packages.${pkgs.system}.kidex
2221
# inputs.anyrun.packages.${pkgs.system}.websearch

modules/home-manager/shared/wayland/hyprland/default.nix

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ in {
7272
};
7373

7474
gestures = {
75-
workspace_swipe = "yes";
76-
workspace_swipe_fingers = 4;
75+
workspace_swipe_touch = "yes";
7776
};
7877

7978
general = {

modules/home-manager/shared/wayland/vicinae/default.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@ _: {
44
autoStart = true; # default: true
55
# package = # specify package to use here. Can be omitted.
66
};
7+
8+
# create a configfile from ./vicinae.json
9+
xdg.configFile."vicinae/config.json".source = ./vicinae.json;
710
}

0 commit comments

Comments
 (0)