Compare commits
39 Commits
c666c4739c
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| a705cac5de | |||
| 2f0c7750de | |||
| 8afeda2e9a | |||
| 93431732c5 | |||
| affe3c9b79 | |||
| 0a46b57485 | |||
| e8ec456ffd | |||
|
|
1b75b1bc9a | ||
| 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 |
@@ -10,6 +10,7 @@ Each system has its own dedicated configuration module.
|
|||||||
| **gandalf** | Personal system configuration for `gandalf`. |
|
| **gandalf** | Personal system configuration for `gandalf`. |
|
||||||
| **frodo** | Personal system configuration for `frodo`. |
|
| **frodo** | Personal system configuration for `frodo`. |
|
||||||
| **legolas** | Personal system configuration for `legolas`. |
|
| **legolas** | Personal system configuration for `legolas`. |
|
||||||
|
| **balrog** | Personal system configuration for `balrog`. |
|
||||||
| **work** | Work-oriented system configuration for `work`. |
|
| **work** | Work-oriented system configuration for `work`. |
|
||||||
|
|
||||||
|
|
||||||
@@ -18,7 +19,7 @@ Each system has its own dedicated configuration module.
|
|||||||
To rebuild and switch to a specific system:
|
To rebuild and switch to a specific system:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Replace <system> with gandalf, frodo, legolas, or work
|
# Replace <system> with gandalf, frodo, legolas, balrog or work
|
||||||
sudo nixos-rebuild switch --flake .#<system>
|
sudo nixos-rebuild switch --flake .#<system>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
47
flake.lock
generated
47
flake.lock
generated
@@ -7,11 +7,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1773681845,
|
"lastModified": 1775425411,
|
||||||
"narHash": "sha256-o8hrZrigP0JYcwnglCp8Zi8jQafWsxbDtRRPzuVwFxY=",
|
"narHash": "sha256-KY6HsebJHEe5nHOWP7ur09mb0drGxYSzE3rQxy62rJo=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "0759e0e137305bc9d0c52c204c6d8dffe6f601a6",
|
"rev": "0d02ec1d0a05f88ef9e74b516842900c41f0f2fe",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -21,13 +21,28 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nix-flatpak": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1777229239,
|
||||||
|
"narHash": "sha256-OwSaWqlBdKn8QIa7BrPtJmlrr46U7AuwMc/toDKuMZw=",
|
||||||
|
"owner": "gmodena",
|
||||||
|
"repo": "nix-flatpak",
|
||||||
|
"rev": "3f1d78b63b6af353c0685b8a7411c04d980426e4",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "gmodena",
|
||||||
|
"repo": "nix-flatpak",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1773814637,
|
"lastModified": 1777077449,
|
||||||
"narHash": "sha256-GNU+ooRmrHLfjlMsKdn0prEKVa0faVanm0jrgu1J/gY=",
|
"narHash": "sha256-AIiMJiqvGrN4HyLEbKAoCSRRYn0rnlW5VbKNIMIYqm4=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "fea3b367d61c1a6592bc47c72f40a9f3e6a53e96",
|
"rev": "a4bf06618f0b5ee50f14ed8f0da77d34ecc19160",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -37,10 +52,28 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs-unstable": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1776949667,
|
||||||
|
"narHash": "sha256-GMSVw35Q+294GlrTUKlx087E31z7KurReQ1YHSKp5iw=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "01fbdeef22b76df85ea168fbfe1bfd9e63681b30",
|
||||||
|
"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"
|
"nix-flatpak": "nix-flatpak",
|
||||||
|
"nixpkgs": "nixpkgs",
|
||||||
|
"nixpkgs-unstable": "nixpkgs-unstable"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -6,10 +6,19 @@
|
|||||||
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";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nix-flatpak = {
|
||||||
|
url = "github:gmodena/nix-flatpak";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# This strange syntax is a workaround for the intentional limitations of `flake.nix` files.
|
# This strange syntax is a workaround for the intentional limitations of `flake.nix` files.
|
||||||
|
|||||||
41
outputs.nix
41
outputs.nix
@@ -1,31 +1,70 @@
|
|||||||
{ nixpkgs, home-manager, ... }:
|
{ nixpkgs, nixpkgs-unstable, home-manager, nix-flatpak, ... }:
|
||||||
|
|
||||||
|
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";
|
||||||
|
nixFlatpak = nix-flatpak;
|
||||||
|
};
|
||||||
modules = [
|
modules = [
|
||||||
|
nix-flatpak.nixosModules.nix-flatpak
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
./systems/gandalf
|
./systems/gandalf
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
"frodo" = nixpkgs.lib.nixosSystem {
|
"frodo" = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
specialArgs = {
|
||||||
|
pkgsUnstable = mkPkgsUnstable "x86_64-linux";
|
||||||
|
nixFlatpak = nix-flatpak;
|
||||||
|
};
|
||||||
modules = [
|
modules = [
|
||||||
|
nix-flatpak.nixosModules.nix-flatpak
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
./systems/frodo
|
./systems/frodo
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
"legolas" = nixpkgs.lib.nixosSystem {
|
"legolas" = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
specialArgs = {
|
||||||
|
pkgsUnstable = mkPkgsUnstable "x86_64-linux";
|
||||||
|
nixFlatpak = nix-flatpak;
|
||||||
|
};
|
||||||
modules = [
|
modules = [
|
||||||
|
nix-flatpak.nixosModules.nix-flatpak
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
./systems/legolas
|
./systems/legolas
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
"balrog" = nixpkgs.lib.nixosSystem {
|
||||||
|
system = "x86_64-linux";
|
||||||
|
specialArgs = {
|
||||||
|
pkgsUnstable = mkPkgsUnstable "x86_64-linux";
|
||||||
|
nixFlatpak = nix-flatpak;
|
||||||
|
};
|
||||||
|
modules = [
|
||||||
|
nix-flatpak.nixosModules.nix-flatpak
|
||||||
|
home-manager.nixosModules.home-manager
|
||||||
|
./systems/balrog
|
||||||
|
];
|
||||||
|
};
|
||||||
"work" = nixpkgs.lib.nixosSystem {
|
"work" = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
specialArgs = {
|
||||||
|
pkgsUnstable = mkPkgsUnstable "x86_64-linux";
|
||||||
|
nixFlatpak = nix-flatpak;
|
||||||
|
};
|
||||||
modules = [
|
modules = [
|
||||||
|
nix-flatpak.nixosModules.nix-flatpak
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
./systems/work
|
./systems/work
|
||||||
];
|
];
|
||||||
|
|||||||
52
systems/balrog/default.nix
Normal file
52
systems/balrog/default.nix
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
# Edit this configuration file to define what should be installed on
|
||||||
|
# your system. Help is available in the configuration.nix(5) man page, on
|
||||||
|
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
|
||||||
|
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports =
|
||||||
|
[ # Include the results of the hardware scan.
|
||||||
|
./hardware-configuration.nix
|
||||||
|
../modules/home-manager.nix
|
||||||
|
../modules/common.nix
|
||||||
|
../modules/users.nix
|
||||||
|
../modules/locales.nix
|
||||||
|
../modules/services.nix
|
||||||
|
../modules/programs.nix
|
||||||
|
../modules/docker.nix
|
||||||
|
../modules/printing.nix
|
||||||
|
../modules/bambu-studio-flatpak.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.loader.systemd-boot.enable = false;
|
||||||
|
boot.loader = {
|
||||||
|
efi = {
|
||||||
|
canTouchEfiVariables = true;
|
||||||
|
efiSysMountPoint = "/boot/efi"; # ← use the same mount point here.
|
||||||
|
};
|
||||||
|
grub = {
|
||||||
|
efiSupport = true;
|
||||||
|
device = "nodev";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
networking.hostName = "balrog";
|
||||||
|
networking.networkmanager.enable = true;
|
||||||
|
networking.nameservers = [ "192.168.68.56" "1.1.1.1" "8.8.8.8" ];
|
||||||
|
|
||||||
|
hardware.enableAllFirmware = true;
|
||||||
|
|
||||||
|
boot.initrd.kernelModules = [ "wl" ]; boot.kernelModules = [ "wl" "kvm-intel" ];
|
||||||
|
|
||||||
|
boot.extraModulePackages = with config.boot.kernelPackages; [
|
||||||
|
broadcom_sta
|
||||||
|
];
|
||||||
|
|
||||||
|
nixpkgs.config = {
|
||||||
|
allowInsecurePredicate = pkg: builtins.elem (lib.getName pkg) ["broadcom-sta"];
|
||||||
|
};
|
||||||
|
hardware.bluetooth.enable = true;
|
||||||
|
services.blueman.enable = true;
|
||||||
|
system.stateVersion = "25.11"; # Did you read the comment?
|
||||||
|
}
|
||||||
31
systems/balrog/hardware-configuration.nix
Normal file
31
systems/balrog/hardware-configuration.nix
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
# 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" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
fileSystems."/" =
|
||||||
|
{ device = "/dev/disk/by-uuid/6795dc19-3130-4693-b04c-a2c56fbdbd55";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/boot" =
|
||||||
|
{ device = "/dev/disk/by-uuid/A202-E19C";
|
||||||
|
fsType = "vfat";
|
||||||
|
options = [ "fmask=0022" "dmask=0022" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [ ];
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
}
|
||||||
@@ -19,6 +19,11 @@
|
|||||||
../modules/kdenlive.nix
|
../modules/kdenlive.nix
|
||||||
../modules/audacity.nix
|
../modules/audacity.nix
|
||||||
../modules/ollama.nix
|
../modules/ollama.nix
|
||||||
|
../modules/wireguard.nix
|
||||||
|
../modules/qbittorrent.nix
|
||||||
|
../modules/gimp.nix
|
||||||
|
../modules/openscad.nix
|
||||||
|
../modules/bambu-studio-flatpak.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
@@ -28,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;
|
||||||
@@ -48,12 +61,6 @@
|
|||||||
|
|
||||||
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
|
# Can be removed when https://github.com/NixOS/nixpkgs/pull/499670 is merged and in 25.11
|
||||||
|
|||||||
8
systems/modules/bambu-studio-flatpak.nix
Normal file
8
systems/modules/bambu-studio-flatpak.nix
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{ pkgs, ...}:
|
||||||
|
|
||||||
|
{
|
||||||
|
services.flatpak.enable = true;
|
||||||
|
services.flatpak.packages = [
|
||||||
|
"com.bambulab.BambuStudio"
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -10,9 +10,9 @@
|
|||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
chromium
|
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/gimp.nix
Normal file
7
systems/modules/gimp.nix
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{ config, pkgs, ... } :
|
||||||
|
|
||||||
|
{
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
gimp
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
home-manager = {
|
|
||||||
useGlobalPkgs = true;
|
|
||||||
useUserPackages = true;
|
|
||||||
|
|
||||||
users.avravels = import home/home-work.nix;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,9 +1,12 @@
|
|||||||
{ 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;
|
||||||
};
|
};
|
||||||
|
|||||||
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 |
@@ -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
|
|
||||||
];
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
{ pkgs, ... } :
|
|
||||||
|
|
||||||
{
|
|
||||||
programs.git = {
|
|
||||||
enable = true;
|
|
||||||
settings.user = {
|
|
||||||
name = "Armel van Ravels";
|
|
||||||
email = "armel@webavance.nl";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,11 +1,28 @@
|
|||||||
{ pkgs, ... } :
|
{ lib, pkgsUnstable, 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 = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = pkgsUnstable.git;
|
||||||
settings.user = {
|
settings.user = {
|
||||||
name = "Armel van Ravels";
|
name = config.home.git.userName;
|
||||||
email = "armel@armel.nl";
|
email = config.home.git.userEmail;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
programs.tmux.enable = true;
|
programs.tmux = {
|
||||||
|
enable = true;
|
||||||
|
mouse = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,9 +10,13 @@
|
|||||||
ms-dotnettools.csdevkit
|
ms-dotnettools.csdevkit
|
||||||
ms-dotnettools.vscode-dotnet-runtime
|
ms-dotnettools.vscode-dotnet-runtime
|
||||||
mkhl.direnv # Direnv integration for VSCode
|
mkhl.direnv # Direnv integration for VSCode
|
||||||
|
catppuccin.catppuccin-vsc
|
||||||
|
vscodevim.vim
|
||||||
];
|
];
|
||||||
|
|
||||||
profiles.default.userSettings = {
|
profiles.default.userSettings = {
|
||||||
|
"editor.lineNumbers" = "relative";
|
||||||
|
"workbench.colorTheme" = "Catppuccin Mocha";
|
||||||
"direnv.restart.automatic" = true;
|
"direnv.restart.automatic" = true;
|
||||||
"terminal.integrated.defaultProfile.linux" = "zsh";
|
"terminal.integrated.defaultProfile.linux" = "zsh";
|
||||||
"terminal.integrated.profiles.linux" = {
|
"terminal.integrated.profiles.linux" = {
|
||||||
|
|||||||
@@ -1,6 +1,18 @@
|
|||||||
{ pkgs, ... }:
|
{ 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; [
|
home.packages = with pkgs; [
|
||||||
bzmenu
|
bzmenu
|
||||||
hyprshot
|
hyprshot
|
||||||
@@ -15,6 +27,8 @@
|
|||||||
settings = {
|
settings = {
|
||||||
### MONITOR
|
### MONITOR
|
||||||
monitor = [
|
monitor = [
|
||||||
|
"eDP-1,1920x1200,auto,1"
|
||||||
|
"DP-3,2440x1440,auto,1"
|
||||||
",preferred,auto,1"
|
",preferred,auto,1"
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -63,9 +77,8 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
exec-once = [
|
# Use the configurable option here (default `[ "waybar" ]`)
|
||||||
"waybar"
|
exec-once = (if cfg == null then { execOnce = [ "waybar" ]; } else cfg).execOnce;
|
||||||
];
|
|
||||||
|
|
||||||
### INPUT
|
### INPUT
|
||||||
input = {
|
input = {
|
||||||
@@ -140,4 +153,5 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgsUnstable, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
services.ollama = {
|
services.ollama = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.ollama-cuda;
|
package = pkgsUnstable.ollama-cuda;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.open-webui.enable = true;
|
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
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
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" ];
|
||||||
|
|||||||
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
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../modules/home-manager-work.nix
|
../modules/home-manager.nix
|
||||||
../modules/common.nix
|
../modules/common.nix
|
||||||
../modules/users.nix
|
../modules/users.nix
|
||||||
../modules/locales.nix
|
../modules/locales.nix
|
||||||
@@ -16,6 +16,12 @@
|
|||||||
../modules/teams-for-linux.nix
|
../modules/teams-for-linux.nix
|
||||||
../modules/azure-data-studio.nix
|
../modules/azure-data-studio.nix
|
||||||
../modules/filezilla.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.systemd-boot.enable = true;
|
||||||
@@ -29,8 +35,19 @@
|
|||||||
|
|
||||||
networking.hostName = "laptop-armel";
|
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.networkmanager.enable = true;
|
||||||
networking.nameservers = [ "192.168.68.56" "1.1.1.1" "8.8.8.8" ];
|
networking.nameservers = [ "127.0.0.1" "192.168.68.56" "1.1.1.1" "8.8.8.8" ];
|
||||||
networking.firewall.enable = false;
|
networking.firewall.enable = false;
|
||||||
|
|
||||||
hardware.graphics.enable = true;
|
hardware.graphics.enable = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user