Compare commits
41 Commits
5ffe87cfcf
...
feature/ol
| Author | SHA1 | Date | |
|---|---|---|---|
| f20066a0af | |||
| bd857c77dd | |||
|
|
b1a13b64f7 | ||
| deed82f96b | |||
|
|
6425616f8c | ||
| 80cb7a6bd2 | |||
| fc91df833a | |||
| 958a973ab5 | |||
| 4a19d10559 | |||
|
|
4ff894e086 | ||
| 57dee45cb3 | |||
|
|
eb948732a8 | ||
| ff77b81b59 | |||
| a567d88667 | |||
| e4f8c5e916 | |||
| edfd6e1200 | |||
| ffd4894ab9 | |||
| 6fe61afbaa | |||
| 84b80ee811 | |||
| 7506054ebb | |||
| 302c904cd2 | |||
| 60267a5515 | |||
| 9aaba131e1 | |||
| 8b9bb7ae90 | |||
|
|
82a77971b0 | ||
| f0e25ae7ae | |||
|
|
b3e4978f10 | ||
|
|
13082612ed | ||
| da793609a7 | |||
|
|
37e2708326 | ||
|
|
69c8b59c6a | ||
| c666c4739c | |||
| 33712e5b1f | |||
| 9963e5771a | |||
|
|
6be6804682 | ||
|
|
e9b0f40ef7 | ||
|
|
5084df1352 | ||
|
|
95b7dd5e43 | ||
| 6c72d0b4bf | |||
| ae92b5f392 | |||
| 2751af0073 |
25
README.md
Normal file
25
README.md
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
# NixOS Configurations (Flakes)
|
||||||
|
|
||||||
|
This repository manages multiple **NixOS system configurations** using **flakes** and **Home Manager**.
|
||||||
|
Each system has its own dedicated configuration module.
|
||||||
|
|
||||||
|
## Supported Systems
|
||||||
|
|
||||||
|
| System Name | Description |
|
||||||
|
|-------------|-------------|
|
||||||
|
| **gandalf** | Personal system configuration for `gandalf`. |
|
||||||
|
| **frodo** | Personal system configuration for `frodo`. |
|
||||||
|
| **legolas** | Personal system configuration for `legolas`. |
|
||||||
|
| **work** | Work-oriented system configuration for `work`. |
|
||||||
|
|
||||||
|
|
||||||
|
## Rebuild a System
|
||||||
|
|
||||||
|
To rebuild and switch to a specific system:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Replace <system> with gandalf, frodo, legolas, or work
|
||||||
|
sudo nixos-rebuild switch --flake .#<system>
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
31
flake.lock
generated
31
flake.lock
generated
@@ -7,11 +7,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1772633058,
|
"lastModified": 1775425411,
|
||||||
"narHash": "sha256-SO7JapRy2HPhgmqiLbfnW1kMx5rakPMKZ9z3wtRLQjI=",
|
"narHash": "sha256-KY6HsebJHEe5nHOWP7ur09mb0drGxYSzE3rQxy62rJo=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "080657a04188aca25f8a6c70a0fb2ea7e37f1865",
|
"rev": "0d02ec1d0a05f88ef9e74b516842900c41f0f2fe",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -23,11 +23,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1772598333,
|
"lastModified": 1776734388,
|
||||||
"narHash": "sha256-YaHht/C35INEX3DeJQNWjNaTcPjYmBwwjFJ2jdtr+5U=",
|
"narHash": "sha256-vl3dkhlE5gzsItuHoEMVe+DlonsK+0836LIRDnm6MXQ=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "fabb8c9deee281e50b1065002c9828f2cf7b2239",
|
"rev": "10e7ad5bbcb421fe07e3a4ad53a634b0cd57ffac",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -37,10 +37,27 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs-unstable": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1776329215,
|
||||||
|
"narHash": "sha256-a8BYi3mzoJ/AcJP8UldOx8emoPRLeWqALZWu4ZvjPXw=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "b86751bc4085f48661017fa226dee99fab6c651b",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixpkgs-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs",
|
||||||
|
"nixpkgs-unstable": "nixpkgs-unstable"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -6,6 +6,10 @@
|
|||||||
url = "github:nixos/nixpkgs/nixos-25.11";
|
url = "github:nixos/nixpkgs/nixos-25.11";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nixpkgs-unstable = {
|
||||||
|
url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||||
|
};
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager/release-25.11";
|
url = "github:nix-community/home-manager/release-25.11";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
{ pkgs, ... } :
|
|
||||||
|
|
||||||
{
|
|
||||||
programs.git = {
|
|
||||||
enable = true;
|
|
||||||
settings.user = {
|
|
||||||
name = "Armel van Ravels";
|
|
||||||
email = "armel@armel.nl";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,143 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
bzmenu
|
|
||||||
hyprshot
|
|
||||||
hyprlock
|
|
||||||
playerctl
|
|
||||||
speedcrunch
|
|
||||||
];
|
|
||||||
|
|
||||||
wayland.windowManager.hyprland = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
settings = {
|
|
||||||
### MONITOR
|
|
||||||
monitor = [
|
|
||||||
",preferred,auto,1"
|
|
||||||
];
|
|
||||||
|
|
||||||
### 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;
|
|
||||||
};
|
|
||||||
|
|
||||||
shadow = {
|
|
||||||
enabled = true;
|
|
||||||
color = "rgba(00000055)";
|
|
||||||
ignore_window = true;
|
|
||||||
offset = "0 15";
|
|
||||||
range = 100;
|
|
||||||
render_power = 2;
|
|
||||||
scale = 0.97;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
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"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
28
outputs.nix
28
outputs.nix
@@ -1,9 +1,19 @@
|
|||||||
{ nixpkgs, home-manager, ... }:
|
{ nixpkgs, nixpkgs-unstable, home-manager, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
mkPkgsUnstable = system: import nixpkgs-unstable {
|
||||||
|
inherit system;
|
||||||
|
config.allowUnfree = true;
|
||||||
|
};
|
||||||
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
"gandalf" = nixpkgs.lib.nixosSystem {
|
"gandalf" = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
specialArgs = {
|
||||||
|
pkgsUnstable = mkPkgsUnstable "x86_64-linux";
|
||||||
|
};
|
||||||
modules = [
|
modules = [
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
./systems/gandalf
|
./systems/gandalf
|
||||||
@@ -11,6 +21,9 @@
|
|||||||
};
|
};
|
||||||
"frodo" = nixpkgs.lib.nixosSystem {
|
"frodo" = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
specialArgs = {
|
||||||
|
pkgsUnstable = mkPkgsUnstable "x86_64-linux";
|
||||||
|
};
|
||||||
modules = [
|
modules = [
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
./systems/frodo
|
./systems/frodo
|
||||||
@@ -18,10 +31,23 @@
|
|||||||
};
|
};
|
||||||
"legolas" = nixpkgs.lib.nixosSystem {
|
"legolas" = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
specialArgs = {
|
||||||
|
pkgsUnstable = mkPkgsUnstable "x86_64-linux";
|
||||||
|
};
|
||||||
modules = [
|
modules = [
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
./systems/legolas
|
./systems/legolas
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
"work" = nixpkgs.lib.nixosSystem {
|
||||||
|
system = "x86_64-linux";
|
||||||
|
specialArgs = {
|
||||||
|
pkgsUnstable = mkPkgsUnstable "x86_64-linux";
|
||||||
|
};
|
||||||
|
modules = [
|
||||||
|
home-manager.nixosModules.home-manager
|
||||||
|
./systems/work
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,6 +18,12 @@
|
|||||||
../modules/matrix.nix
|
../modules/matrix.nix
|
||||||
../modules/kdenlive.nix
|
../modules/kdenlive.nix
|
||||||
../modules/audacity.nix
|
../modules/audacity.nix
|
||||||
|
../modules/ollama.nix
|
||||||
|
../modules/wireguard.nix
|
||||||
|
../modules/qbittorrent.nix
|
||||||
|
../modules/gimp.nix
|
||||||
|
../modules/openscad.nix
|
||||||
|
../modules/flatpak.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
@@ -27,10 +33,18 @@
|
|||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
networking.nameservers = [ "192.168.68.56" "1.1.1.1" "8.8.8.8" ];
|
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"
|
||||||
|
"[workspace 1 silent] spotify"
|
||||||
|
"[workspace 2 silent] firefox"
|
||||||
|
];
|
||||||
|
|
||||||
networking.interfaces.enp130s0.wakeOnLan.enable = true;
|
networking.interfaces.enp130s0.wakeOnLan.enable = true;
|
||||||
networking.firewall.allowedUDPPorts = [ 9 ];
|
networking.firewall.allowedUDPPorts = [ 9 ];
|
||||||
|
|
||||||
services.xserver.videoDrivers = ["nvidia"];
|
services.xserver.videoDrivers = ["nvidia"];
|
||||||
|
services.openssh.settings.X11Forwarding = true;
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
graphics.enable = true;
|
graphics.enable = true;
|
||||||
@@ -47,14 +61,9 @@
|
|||||||
|
|
||||||
virtualisation.libvirtd.enable = true;
|
virtualisation.libvirtd.enable = true;
|
||||||
|
|
||||||
specialisation = {
|
|
||||||
zen.configuration = {
|
|
||||||
boot.kernelPackages = pkgs.linuxPackages_zen;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
# Bluetooth fixes
|
# Bluetooth fixes
|
||||||
|
# Can be removed when https://github.com/NixOS/nixpkgs/pull/499670 is merged and in 25.11
|
||||||
udev.extraRules = ''
|
udev.extraRules = ''
|
||||||
SUBSYSTEM=="usb", ENV{ID_VENDOR_ID}=="0489", ENV{ID_MODEL_ID}=="e111", ENV{UDISKS_IGNORE}="1", ENV{ID_MEDIA_PLAYER}="", ENV{ID_MTP_DEVICE}="", ENV{ID_GPHOTO2}="", ENV{ID_INPUT}="", ENV{SOLID_IGNORE}="1", TAG-="uaccess"
|
SUBSYSTEM=="usb", ENV{ID_VENDOR_ID}=="0489", ENV{ID_MODEL_ID}=="e111", ENV{UDISKS_IGNORE}="1", ENV{ID_MEDIA_PLAYER}="", ENV{ID_MTP_DEVICE}="", ENV{ID_GPHOTO2}="", ENV{ID_INPUT}="", ENV{SOLID_IGNORE}="1", TAG-="uaccess"
|
||||||
|
|
||||||
|
|||||||
7
systems/modules/azure-data-studio.nix
Normal file
7
systems/modules/azure-data-studio.nix
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
azuredatastudio
|
||||||
|
];
|
||||||
|
}
|
||||||
7
systems/modules/bambu-studio.nix
Normal file
7
systems/modules/bambu-studio.nix
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{ config, pkgs, ... } :
|
||||||
|
|
||||||
|
{
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
bambu-studio
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -8,10 +8,11 @@
|
|||||||
users.defaultUserShell = pkgs.zsh;
|
users.defaultUserShell = pkgs.zsh;
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
chromium
|
||||||
gnumake
|
gnumake
|
||||||
git
|
|
||||||
jetbrains-toolbox
|
jetbrains-toolbox
|
||||||
fastfetch
|
fastfetch
|
||||||
|
jq
|
||||||
];
|
];
|
||||||
|
|
||||||
security.rtkit.enable = true;
|
security.rtkit.enable = true;
|
||||||
|
|||||||
12
systems/modules/enova.nix
Normal file
12
systems/modules/enova.nix
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
services.dnsmasq = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
server = [ "1.1.1.1" "8.8.8.8" ];
|
||||||
|
address = [ "/.enova.local/127.0.0.1" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
7
systems/modules/filezilla.nix
Normal file
7
systems/modules/filezilla.nix
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
filezilla
|
||||||
|
];
|
||||||
|
}
|
||||||
5
systems/modules/flatpak.nix
Normal file
5
systems/modules/flatpak.nix
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{ pkgs, ...}:
|
||||||
|
|
||||||
|
{
|
||||||
|
services.flatpak.enable = true;
|
||||||
|
}
|
||||||
7
systems/modules/gimp.nix
Normal file
7
systems/modules/gimp.nix
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{ config, pkgs, ... } :
|
||||||
|
|
||||||
|
{
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
gimp
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -1,10 +1,13 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, pkgsUnstable, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
home-manager = {
|
home-manager = {
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
|
extraSpecialArgs = {
|
||||||
|
inherit pkgsUnstable;
|
||||||
|
};
|
||||||
|
|
||||||
users.avravels = import ../../home/home.nix;
|
users.avravels = import home/home.nix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 1.2 MiB After Width: | Height: | Size: 1.2 MiB |
|
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.1 MiB |
BIN
systems/modules/home/backgrounds/nix.png
Normal file
BIN
systems/modules/home/backgrounds/nix.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 10 MiB |
@@ -19,6 +19,7 @@
|
|||||||
./programs/libreoffice.nix
|
./programs/libreoffice.nix
|
||||||
./programs/nvim.nix
|
./programs/nvim.nix
|
||||||
./programs/ripgrep.nix
|
./programs/ripgrep.nix
|
||||||
|
./programs/vscode.nix
|
||||||
./wm/rofi.nix
|
./wm/rofi.nix
|
||||||
./wm/cursor.nix
|
./wm/cursor.nix
|
||||||
./wm/dconf.nix
|
./wm/dconf.nix
|
||||||
27
systems/modules/home/programs/git.nix
Normal file
27
systems/modules/home/programs/git.nix
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
{ lib, pkgs, config, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -3,6 +3,7 @@
|
|||||||
{
|
{
|
||||||
programs.neovim = {
|
programs.neovim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
defaultEditor = true;
|
||||||
extraLuaPackages = ps: [ ps.magick ];
|
extraLuaPackages = ps: [ ps.magick ];
|
||||||
extraPackages = [
|
extraPackages = [
|
||||||
pkgs.ueberzugpp
|
pkgs.ueberzugpp
|
||||||
29
systems/modules/home/programs/vscode.nix
Normal file
29
systems/modules/home/programs/vscode.nix
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.vscode = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
package = pkgs.vscode.fhs;
|
||||||
|
profiles.default.extensions = with pkgs.vscode-extensions; [
|
||||||
|
ms-dotnettools.csharp
|
||||||
|
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" = {
|
||||||
|
zsh = {
|
||||||
|
path = pkgs.zsh;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
156
systems/modules/home/wm/hyprland.nix
Normal file
156
systems/modules/home/wm/hyprland.nix
Normal file
@@ -0,0 +1,156 @@
|
|||||||
|
{ lib, pkgs, config, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.home.hyprland;
|
||||||
|
in
|
||||||
|
|
||||||
|
{
|
||||||
|
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;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
### MONITOR
|
||||||
|
monitor = [
|
||||||
|
"DP-3,2440x1440,auto,1"
|
||||||
|
",preferred,auto,1"
|
||||||
|
];
|
||||||
|
|
||||||
|
### 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;
|
||||||
|
};
|
||||||
|
|
||||||
|
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"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -3,6 +3,7 @@
|
|||||||
let
|
let
|
||||||
wallpaper = builtins.toString ../backgrounds/monkey.jpg;
|
wallpaper = builtins.toString ../backgrounds/monkey.jpg;
|
||||||
wallpaper2 = builtins.toString ../backgrounds/bird.jpg;
|
wallpaper2 = builtins.toString ../backgrounds/bird.jpg;
|
||||||
|
wallpaper3 = builtins.toString ../backgrounds/nix.png;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
services.hyprpaper = {
|
services.hyprpaper = {
|
||||||
@@ -12,10 +13,10 @@ in
|
|||||||
preload = [
|
preload = [
|
||||||
wallpaper
|
wallpaper
|
||||||
wallpaper2
|
wallpaper2
|
||||||
|
wallpaper3
|
||||||
];
|
];
|
||||||
wallpaper = [
|
wallpaper = [
|
||||||
"DP-2,${wallpaper2}"
|
",${wallpaper3}"
|
||||||
",${wallpaper}"
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
7
systems/modules/jq.nix
Normal file
7
systems/modules/jq.nix
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{ config, pkgs, ... } :
|
||||||
|
|
||||||
|
{
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
jq
|
||||||
|
];
|
||||||
|
}
|
||||||
10
systems/modules/ollama.nix
Normal file
10
systems/modules/ollama.nix
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
{ pkgsUnstable, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
services.ollama = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgsUnstable.ollama-cuda;
|
||||||
|
};
|
||||||
|
|
||||||
|
services.open-webui.enable = true;
|
||||||
|
}
|
||||||
8
systems/modules/openscad.nix
Normal file
8
systems/modules/openscad.nix
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
|
||||||
|
{ config, pkgs, ... } :
|
||||||
|
|
||||||
|
{
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
openscad
|
||||||
|
];
|
||||||
|
}
|
||||||
7
systems/modules/postman.nix
Normal file
7
systems/modules/postman.nix
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
postman
|
||||||
|
];
|
||||||
|
}
|
||||||
7
systems/modules/qbittorrent.nix
Normal file
7
systems/modules/qbittorrent.nix
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
qbittorrent
|
||||||
|
];
|
||||||
|
}
|
||||||
7
systems/modules/remmina.nix
Normal file
7
systems/modules/remmina.nix
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
remmina
|
||||||
|
];
|
||||||
|
}
|
||||||
7
systems/modules/teams-for-linux.nix
Normal file
7
systems/modules/teams-for-linux.nix
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
teams-for-linux
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -2,12 +2,13 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
users.users.avravels = {
|
users.users.avravels = {
|
||||||
|
initialPassword = "welcome";
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "Armel van Ravels";
|
description = "Armel van Ravels";
|
||||||
extraGroups = [ "networkmanager" "wheel" "libvirtd" ];
|
extraGroups = [ "networkmanager" "wheel" "libvirtd" ];
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
home-manager
|
home-manager
|
||||||
discord
|
legcord
|
||||||
spotify
|
spotify
|
||||||
protonvpn-gui
|
protonvpn-gui
|
||||||
];
|
];
|
||||||
|
|||||||
7
systems/modules/wireguard.nix
Normal file
7
systems/modules/wireguard.nix
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
wireguard-tools
|
||||||
|
];
|
||||||
|
}
|
||||||
64
systems/work/default.nix
Normal file
64
systems/work/default.nix
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports =
|
||||||
|
[
|
||||||
|
./hardware-configuration.nix
|
||||||
|
../modules/home-manager.nix
|
||||||
|
../modules/common.nix
|
||||||
|
../modules/users.nix
|
||||||
|
../modules/locales.nix
|
||||||
|
../modules/services.nix
|
||||||
|
../modules/programs.nix
|
||||||
|
../modules/garbage-collection.nix
|
||||||
|
../modules/printing.nix
|
||||||
|
../modules/docker.nix
|
||||||
|
../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
|
||||||
|
../modules/jq.nix
|
||||||
|
../modules/enova.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
|
boot.plymouth.enable = true;
|
||||||
|
boot.plymouth.theme = "spinner";
|
||||||
|
boot.initrd.systemd.enable = true;
|
||||||
|
|
||||||
|
programs.nix-ld.enable = true;
|
||||||
|
|
||||||
|
networking.hostName = "laptop-armel";
|
||||||
|
|
||||||
|
home-manager.users.avravels.home.hyprland.execOnce = [
|
||||||
|
"waybar"
|
||||||
|
"[workspace 1 silent] kitty"
|
||||||
|
"[workspace 2 silent] firefox"
|
||||||
|
"[workspace 2 silent] teams-for-linux"
|
||||||
|
"[workspace 3 silent] spotify"
|
||||||
|
];
|
||||||
|
|
||||||
|
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 = [ "127.0.0.1" "192.168.68.56" "1.1.1.1" "8.8.8.8" ];
|
||||||
|
networking.firewall.enable = false;
|
||||||
|
|
||||||
|
hardware.graphics.enable = true;
|
||||||
|
services.xserver.videoDrivers = [ "intel" ];
|
||||||
|
|
||||||
|
virtualisation.libvirtd.enable = true;
|
||||||
|
|
||||||
|
networking.hosts = {
|
||||||
|
"127.0.0.1" = [ "local.wormundco.de" "local.wormundco.nl" "local.wormenco.nl" "local.wurmundco.de" ];
|
||||||
|
"149.210.174.226" = [ "kindertelefoon" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
system.stateVersion = "25.11"; # Did you read the comment?
|
||||||
|
}
|
||||||
33
systems/work/hardware-configuration.nix
Normal file
33
systems/work/hardware-configuration.nix
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
|
# and may be overwritten by future invocations. Please make changes
|
||||||
|
# to /etc/nixos/configuration.nix instead.
|
||||||
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports =
|
||||||
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "usbhid" "sd_mod" ];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
fileSystems."/" =
|
||||||
|
{ device = "/dev/mapper/luks-5217fae8-1b85-4667-abb7-2b4ca7d443ba";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
boot.initrd.luks.devices."luks-5217fae8-1b85-4667-abb7-2b4ca7d443ba".device = "/dev/disk/by-uuid/5217fae8-1b85-4667-abb7-2b4ca7d443ba";
|
||||||
|
|
||||||
|
fileSystems."/boot" =
|
||||||
|
{ device = "/dev/disk/by-uuid/3892-6129";
|
||||||
|
fsType = "vfat";
|
||||||
|
options = [ "fmask=0077" "dmask=0077" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [ ];
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user