17 Commits

Author SHA1 Message Date
e4f8c5e916 Add gimp to gandalf system 2026-04-04 21:25:28 +02:00
edfd6e1200 Merge pull request 'Autostart is configurable' (#14) from feature/hyprland-autostart into master
Reviewed-on: #14
2026-04-04 21:17:56 +02:00
ffd4894ab9 Autostart is configurable 2026-04-04 18:54:19 +02:00
6fe61afbaa Add qbittorrent and drop zen kernel 2026-03-31 22:53:50 +02:00
84b80ee811 Update flake.lock 2026-03-31 15:30:55 +02:00
7506054ebb Update flake 2026-03-30 21:04:47 +02:00
302c904cd2 Remove unused file 2026-03-27 21:53:00 +01:00
60267a5515 drop RDP 2026-03-27 21:46:55 +01:00
9aaba131e1 Add gimp.nix to work machine 2026-03-27 10:05:33 +01:00
8b9bb7ae90 Create gimp.nix module 2026-03-27 10:03:53 +01:00
Armel van Ravels
82a77971b0 Update flake.lock 2026-03-26 15:43:26 +01:00
f0e25ae7ae Enable X11 forwarding on gandalf 2026-03-26 15:17:29 +01:00
Armel van Ravels
b3e4978f10 Add postman 2026-03-26 10:08:12 +01:00
Armel van Ravels
13082612ed configurable git email and name 2026-03-26 10:02:22 +01:00
da793609a7 Add RDP to gandalf 2026-03-25 10:08:07 +01:00
Armel van Ravels
37e2708326 Add wireguard tools 2026-03-23 10:32:07 +01:00
Armel van Ravels
69c8b59c6a Update flake.lock 2026-03-23 10:28:10 +01:00
14 changed files with 230 additions and 202 deletions

12
flake.lock generated
View File

@@ -7,11 +7,11 @@
]
},
"locked": {
"lastModified": 1773681845,
"narHash": "sha256-o8hrZrigP0JYcwnglCp8Zi8jQafWsxbDtRRPzuVwFxY=",
"lastModified": 1774875830,
"narHash": "sha256-WPYlTmZvVa9dWlAziFkVjBdv1Z6giNIq40O1DxsBmiI=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "0759e0e137305bc9d0c52c204c6d8dffe6f601a6",
"rev": "7afd8cebb99e25a64a745765920e663478eb8830",
"type": "github"
},
"original": {
@@ -23,11 +23,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1773814637,
"narHash": "sha256-GNU+ooRmrHLfjlMsKdn0prEKVa0faVanm0jrgu1J/gY=",
"lastModified": 1774799055,
"narHash": "sha256-Tsq9BCz0q47ej1uFF39m4tuhcwru/ls6vCCJzutEpaw=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "fea3b367d61c1a6592bc47c72f40a9f3e6a53e96",
"rev": "107cba9eb4a8d8c9f8e9e61266d78d340867913a",
"type": "github"
},
"original": {

View File

@@ -19,6 +19,9 @@
../modules/kdenlive.nix
../modules/audacity.nix
../modules/ollama.nix
../modules/wireguard.nix
../modules/qbittorrent.nix
../modules/gimp.nix
];
boot.loader.systemd-boot.enable = true;
@@ -28,10 +31,18 @@
networking.networkmanager.enable = true;
networking.nameservers = [ "192.168.68.56" "1.1.1.1" "8.8.8.8" ];
home-manager.users.avravels.home.hyprland.execOnce = [
"waybar"
"[workspace 1 silent] kitty tmux"
"[workspace 1 silent] spotify"
"[workspace 2 silent] firefox"
];
networking.interfaces.enp130s0.wakeOnLan.enable = true;
networking.firewall.allowedUDPPorts = [ 9 ];
services.xserver.videoDrivers = ["nvidia"];
services.openssh.settings.X11Forwarding = true;
hardware = {
graphics.enable = true;
@@ -48,12 +59,6 @@
virtualisation.libvirtd.enable = true;
specialisation = {
zen.configuration = {
boot.kernelPackages = pkgs.linuxPackages_zen;
};
};
services = {
# Bluetooth fixes
# Can be removed when https://github.com/NixOS/nixpkgs/pull/499670 is merged and in 25.11

7
systems/modules/gimp.nix Normal file
View File

@@ -0,0 +1,7 @@
{ config, pkgs, ... } :
{
environment.systemPackages = with pkgs; [
gimp
];
}

View File

@@ -1,10 +0,0 @@
{ pkgs, ... }:
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.avravels = import home/home-work.nix;
};
}

View File

@@ -1,32 +0,0 @@
{ pkgs, lib, ... }:
{
# Home Manager state version
home.stateVersion = "25.11";
home.username = "avravels";
home.homeDirectory = "/home/avravels";
imports = [
./other/fonts.nix
./programs/bitwarden.nix
./programs/kitty.nix
./programs/zsh.nix
./programs/direnv.nix
./programs/firefox.nix
./programs/tmux.nix
./programs/git-work.nix
./programs/libreoffice.nix
./programs/nvim.nix
./programs/ripgrep.nix
./programs/vscode.nix
./wm/rofi.nix
./wm/cursor.nix
./wm/dconf.nix
./wm/gtk.nix
./wm/waybar.nix
./wm/hyprland.nix
./wm/hyprpaper.nix
];
}

View File

@@ -1,11 +0,0 @@
{ pkgs, ... } :
{
programs.git = {
enable = true;
settings.user = {
name = "Armel van Ravels";
email = "armel@webavance.nl";
};
};
}

View File

@@ -1,11 +1,27 @@
{ pkgs, ... } :
{ lib, pkgs, config, ... }:
{
programs.git = {
enable = true;
settings.user = {
name = "Armel van Ravels";
email = "armel@armel.nl";
options.home.git = {
userName = lib.mkOption {
type = lib.types.str;
default = "Armel van Ravels";
description = "Default git user.name for this user";
};
userEmail = lib.mkOption {
type = lib.types.str;
default = "armel@armel.nl";
description = "Default git user.email for this user";
};
};
config = {
programs.git = {
enable = true;
settings.user = {
name = config.home.git.userName;
email = config.home.git.userEmail;
};
};
};
}

View File

@@ -10,9 +10,13 @@
ms-dotnettools.csdevkit
ms-dotnettools.vscode-dotnet-runtime
mkhl.direnv # Direnv integration for VSCode
catppuccin.catppuccin-vsc
vscodevim.vim
];
profiles.default.userSettings = {
"editor.lineNumbers" = "relative";
"workbench.colorTheme" = "Catppuccin Mocha";
"direnv.restart.automatic" = true;
"terminal.integrated.defaultProfile.linux" = "zsh";
"terminal.integrated.profiles.linux" = {

View File

@@ -1,143 +1,155 @@
{ pkgs, ... }:
{ lib, pkgs, config, ... }:
let
cfg = config.home.hyprland;
in
{
home.packages = with pkgs; [
bzmenu
hyprshot
hyprlock
playerctl
speedcrunch
];
options.home.hyprland = {
execOnce = lib.mkOption {
type = lib.types.listOf lib.types.str;
default = [ "waybar" ];
description = "Commands to run once when Hyprland starts (maps to Hyprland `exec-once`).";
};
};
config = {
home.packages = with pkgs; [
bzmenu
hyprshot
hyprlock
playerctl
speedcrunch
];
wayland.windowManager.hyprland = {
enable = true;
wayland.windowManager.hyprland = {
enable = true;
settings = {
### MONITOR
monitor = [
",preferred,auto,1"
];
settings = {
### MONITOR
monitor = [
",preferred,auto,1"
];
### VARIABLES
"$mod" = "SUPER";
"$terminal" = "kitty";
"$menu" = "rofi -show drun";
"$bluetoothMenu" = "bzmenu --launcher rofi";
"$files" = "rofi -show filebrowser";
### VARIABLES
"$mod" = "SUPER";
"$terminal" = "kitty";
"$menu" = "rofi -show drun";
"$bluetoothMenu" = "bzmenu --launcher rofi";
"$files" = "rofi -show filebrowser";
### BASIC LAYOUT
general = {
layout = "dwindle";
resize_on_border = true;
};
decoration = {
inactive_opacity = 0.8;
active_opacity = 0.9;
rounding = 5;
rounding_power = 2.5;
blur = {
enabled = true;
brightness = 1.0;
contrast = 1.0;
noise = 0.01;
vibrancy = 0.2;
vibrancy_darkness = 0.5;
passes = 4;
size = 7;
popups = true;
popups_ignorealpha = 0.2;
### BASIC LAYOUT
general = {
layout = "dwindle";
resize_on_border = true;
};
shadow = {
enabled = true;
color = "rgba(00000055)";
ignore_window = true;
offset = "0 15";
range = 100;
render_power = 2;
scale = 0.97;
decoration = {
inactive_opacity = 0.8;
active_opacity = 0.9;
rounding = 5;
rounding_power = 2.5;
blur = {
enabled = true;
brightness = 1.0;
contrast = 1.0;
noise = 0.01;
vibrancy = 0.2;
vibrancy_darkness = 0.5;
passes = 4;
size = 7;
popups = true;
popups_ignorealpha = 0.2;
};
shadow = {
enabled = true;
color = "rgba(00000055)";
ignore_window = true;
offset = "0 15";
range = 100;
render_power = 2;
scale = 0.97;
};
};
# Use the configurable option here (default `[ "waybar" ]`)
exec-once = (if cfg == null then { execOnce = [ "waybar" ]; } else cfg).execOnce;
### INPUT
input = {
kb_layout = "us";
};
### KEYBINDINGS
bind = [
# Apps
"$mod, RETURN, exec, $terminal"
"$mod, D, exec, $menu"
"$mod, B, exec, $bluetoothMenu"
"$mod, G, exec, $files"
"$mod, Q, killactive"
"$mod, F, fullscreen"
"$mod, M, exit"
"$mod, L, exec, hyprlock"
# show/hide waybar
"$mod, W, exec, pkill -SIGUSR1 -f '^waybar$'"
# Focus
"$mod, LEFT, movefocus, l"
"$mod, RIGHT, movefocus, r"
"$mod, UP, movefocus, u"
"$mod, DOWN, movefocus, d"
# Workspaces
"$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"
# Window movement
"$mod SHIFT, LEFT, movewindow, l"
"$mod SHIFT, RIGHT, movewindow, r"
"$mod SHIFT, UP, movewindow, u"
"$mod SHIFT, DOWN, movewindow, d"
# Hyprshot
"$mod, Z, exec, hyprshot -m region"
# Media keys
", XF86AudioPlay, exec, playerctl play-pause"
", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
", XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+"
", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
", XF86AudioNext, exec, playerctl next"
", XF86AudioPrev, exec, playerctl previous"
", XF86Calculator, exec, speedcrunch"
];
bindm = [
"$mod, mouse:272, movewindow"
"$mod, mouse:273, resizewindow"
];
};
exec-once = [
"waybar"
];
### INPUT
input = {
kb_layout = "us";
};
### KEYBINDINGS
bind = [
# Apps
"$mod, RETURN, exec, $terminal"
"$mod, D, exec, $menu"
"$mod, B, exec, $bluetoothMenu"
"$mod, G, exec, $files"
"$mod, Q, killactive"
"$mod, F, fullscreen"
"$mod, M, exit"
"$mod, L, exec, hyprlock"
# show/hide waybar
"$mod, W, exec, pkill -SIGUSR1 -f '^waybar$'"
# Focus
"$mod, LEFT, movefocus, l"
"$mod, RIGHT, movefocus, r"
"$mod, UP, movefocus, u"
"$mod, DOWN, movefocus, d"
# Workspaces
"$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"
# Window movement
"$mod SHIFT, LEFT, movewindow, l"
"$mod SHIFT, RIGHT, movewindow, r"
"$mod SHIFT, UP, movewindow, u"
"$mod SHIFT, DOWN, movewindow, d"
# Hyprshot
"$mod, Z, exec, hyprshot -m region"
# Media keys
", XF86AudioPlay, exec, playerctl play-pause"
", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
", XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+"
", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
", XF86AudioNext, exec, playerctl next"
", XF86AudioPrev, exec, playerctl previous"
", XF86Calculator, exec, speedcrunch"
];
bindm = [
"$mod, mouse:272, movewindow"
"$mod, mouse:273, resizewindow"
];
};
};
}

View File

@@ -0,0 +1,7 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
postman
];
}

View File

@@ -0,0 +1,7 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
qbittorrent
];
}

View File

@@ -0,0 +1,7 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
remmina
];
}

View File

@@ -0,0 +1,7 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
wireguard-tools
];
}

View File

@@ -4,7 +4,7 @@
imports =
[
./hardware-configuration.nix
../modules/home-manager-work.nix
../modules/home-manager.nix
../modules/common.nix
../modules/users.nix
../modules/locales.nix
@@ -16,6 +16,10 @@
../modules/teams-for-linux.nix
../modules/azure-data-studio.nix
../modules/filezilla.nix
../modules/wireguard.nix
../modules/remmina.nix
../modules/postman.nix
../modules/gimp.nix
];
boot.loader.systemd-boot.enable = true;
@@ -29,6 +33,11 @@
networking.hostName = "laptop-armel";
home-manager.users.avravels.home.hyprland.execOnce = [ "waybar" ];
home-manager.users.avravels.home.git.userName = "Armel van Ravels";
home-manager.users.avravels.home.git.userEmail = "armel@webavance.nl";
networking.networkmanager.enable = true;
networking.nameservers = [ "192.168.68.56" "1.1.1.1" "8.8.8.8" ];
networking.firewall.enable = false;