Skip to content

Commit 37cf830

Browse files
Updated flake. Add catppuccin/nix & stable inputs. Redesign gtk approach. Minor fixes.
1 parent 6226ea2 commit 37cf830

File tree

10 files changed

+88
-90
lines changed

10 files changed

+88
-90
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
result

README.md

+2-5
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,8 @@ At the first start of the service, the neo4j user's password for the service mus
109109

110110
## TODO
111111

112-
- [x] Add IP Addresses for current interface to waybar.
113-
- [x] Add click to copy IP in the network module of waybar.
114-
- [x] Add [NvChad](https://github.com/NvChad/NvChad) to the neovim configuration.
115-
- [x] Move waydroid to a module
116-
- [x] Move logitech wireless to a module
112+
- [ ] Create a separate flake and export all packages and options into it to add more modularity.
113+
- [ ] Add blue-team specific packages.
117114

118115
For more detailed information and documentation, please refer to the [official NixOS manual](https://nixos.org/manual/nixos/stable/index.html).
119116

flake.lock

+34-36
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

+18-3
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,21 @@
33

44
inputs = {
55
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
6+
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.05"; # In order to fix stability issues in packages or options.
67
home-manager = {
78
url = "github:nix-community/home-manager";
89
inputs.nixpkgs.follows = "nixpkgs";
910
};
1011
nur.url = "github:nix-community/NUR";
11-
hypr-contrib.url = "github:hyprwm/contrib";
12+
catppuccin.url = "github:catppuccin/nix"; # For theming.
1213
};
1314

1415
outputs = {
1516
nixpkgs,
1617
home-manager,
1718
nur,
19+
nixpkgs-stable,
20+
catppuccin,
1821
...
1922
} @ inputs: let
2023
system = "x86_64-linux";
@@ -40,15 +43,27 @@
4043
home-manager = {
4144
useUserPackages = true;
4245
useGlobalPkgs = true;
43-
extraSpecialArgs = {inherit inputs user;};
46+
extraSpecialArgs = {
47+
inherit inputs user;
48+
stable = import nixpkgs-stable {
49+
inherit system;
50+
config.allowUnFree = true;
51+
};
52+
};
4453
users.${user} = ./. + "/hosts/${hostname}/user.nix";
4554
};
4655
nixpkgs.overlays = [
4756
nur.overlay
4857
];
4958
}
5059
];
51-
specialArgs = {inherit inputs user hostName;};
60+
specialArgs = {
61+
inherit inputs user hostName;
62+
stable = import nixpkgs-stable {
63+
inherit system;
64+
config.allowUnFree = true;
65+
};
66+
};
5267
};
5368
in {
5469
nixosConfigurations = {

modules/default.nix

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
config,
55
...
66
}: {
7-
home.stateVersion = "23.11";
7+
home.stateVersion = "24.05";
88
imports = [
9+
inputs.catppuccin.homeManagerModules.catppuccin
910
./hyprland
1011
./packages
1112
./dunst

modules/gtk/default.nix

+18-21
Original file line numberDiff line numberDiff line change
@@ -14,31 +14,28 @@ in {
1414
gtk-engine-murrine
1515
gnome.gnome-themes-extra
1616
];
17-
home.sessionVariables.GTK_THEME = "Catppuccin-Macchiato-Compact-Mauve-Dark";
17+
18+
catppuccin = {
19+
enable = true;
20+
accent = "mauve";
21+
flavor = "macchiato";
22+
pointerCursor.enable = true;
23+
};
24+
25+
programs.waybar.catppuccin.enable = false;
26+
1827
gtk = {
1928
enable = true;
20-
theme = {
21-
name = "Catppuccin-Macchiato-Compact-Mauve-Dark";
22-
package = pkgs.catppuccin-gtk.override {
23-
accents = ["mauve"];
24-
size = "compact";
25-
tweaks = [];
26-
variant = "macchiato";
29+
catppuccin = {
30+
enable = true;
31+
flavor = "macchiato";
32+
accent = "mauve";
33+
gnomeShellTheme = true;
34+
icon = {
35+
enable = true;
36+
flavor = "macchiato";
2737
};
2838
};
29-
cursorTheme = {
30-
name = "Catppuccin-Macchiato-Mauve-Cursors";
31-
package = pkgs.catppuccin-cursors.macchiatoMauve;
32-
};
33-
iconTheme = {
34-
name = "Papirus-Dark";
35-
package = pkgs.catppuccin-papirus-folders;
36-
};
37-
};
38-
home.pointerCursor = {
39-
gtk.enable = true;
40-
package = pkgs.catppuccin-cursors.macchiatoMauve;
41-
name = "Catppuccin-Macchiato-Mauve-Cursors";
4239
};
4340
};
4441
}

modules/intel/default.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ in {
1616
libva-utils
1717
];
1818

19-
hardware.opengl = {
19+
hardware.graphics = {
2020
enable = true;
2121
extraPackages = with pkgs; [
2222
intel-media-driver

modules/packages/default.nix

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
inputs,
33
pkgs,
4+
stable,
45
lib,
56
config,
67
python3,
@@ -42,7 +43,7 @@ in {
4243
playerctl
4344
gtklock
4445
brightnessctl
45-
inputs.hypr-contrib.packages.${pkgs.system}.grimblast
46+
grimblast
4647
openssl
4748
cifs-utils
4849
mlocate
@@ -84,7 +85,7 @@ in {
8485
keepassxc
8586
# Offensive Tools and Applications
8687
nmap
87-
crackmapexec
88+
netexec
8889
gobuster
8990
theharvester
9091
ffuf
@@ -102,7 +103,7 @@ in {
102103
john
103104
thc-hydra
104105
whatweb
105-
evil-winrm
106+
stable.evil-winrm # Issues with unstable, back to stable.
106107
crunch
107108
hashcat-utils
108109
cadaver

modules/system/configuration.nix

+7-19
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,11 @@
5050

5151
services.hardware.bolt.enable = true;
5252

53-
# Adding XWayland support
54-
programs.hyprland.xwayland.enable = true;
53+
# Adding Hyprland with XWayland support
54+
programs.hyprland = {
55+
enable = true;
56+
xwayland.enable = true;
57+
};
5558

5659
virtualisation.libvirtd.enable = true; # For VMs using virt-manager.
5760

@@ -179,24 +182,9 @@
179182
pam.services.gtklock.text = lib.readFile "${pkgs.gtklock}/etc/pam.d/gtklock";
180183
};
181184

182-
# Sound (PipeWire)
183-
sound.enable = false;
184-
hardware.pulseaudio.enable = false;
185-
security.rtkit.enable = true;
186-
services.pipewire = {
187-
enable = true;
188-
alsa.enable = true;
189-
alsa.support32Bit = true;
190-
pulse.enable = true;
191-
};
192-
193-
# Disable bluetooth, enable pulseaudio, enable opengl (for Wayland)
185+
# Enable Bluetooth
194186
hardware = {
195187
bluetooth.enable = true;
196-
opengl = {
197-
enable = true;
198-
driSupport = true;
199-
};
200188
};
201189

202190
# Kerberos
@@ -205,5 +193,5 @@
205193
services.blueman.enable = true;
206194

207195
# Do not touch
208-
system.stateVersion = "23.11";
196+
system.stateVersion = "24.05";
209197
}

modules/zsh/default.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ in {
2525
dotDir = ".config/zsh";
2626

2727
enableCompletion = true;
28-
enableAutosuggestions = true;
28+
autosuggestion.enable = true;
2929
syntaxHighlighting.enable = true;
3030

3131
initExtra = ''

0 commit comments

Comments
 (0)