Compare commits
8 Commits
feature/de
...
feature/de
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
00a8168ef5 | ||
|
|
6c1074e3fd | ||
| 63360dd275 | |||
|
|
c8c49bb238 | ||
|
|
b4ef190034 | ||
|
|
010031b3d8 | ||
|
|
a1b6ccec7d | ||
| 5bfee98cc8 |
7
.envrc
Normal file
7
.envrc
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
eval "$(devenv direnvrc)"
|
||||||
|
|
||||||
|
# You can pass flags to the devenv command
|
||||||
|
# For example: use devenv --impure --option services.postgres.enable:bool true
|
||||||
|
use devenv
|
||||||
52
devenv.lock
52
devenv.lock
@@ -3,11 +3,11 @@
|
|||||||
"devenv": {
|
"devenv": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"dir": "src/modules",
|
"dir": "src/modules",
|
||||||
"lastModified": 1781800860,
|
"lastModified": 1786490576,
|
||||||
"narHash": "sha256-LrEo0eC5ckMvjpBRCuk5q5/vjItKlxnb4n/clHNRZlk=",
|
"narHash": "sha256-TH5K1TBi5YNUEEVXoPe99Wzy6XOxsuzkypEJofWc/fU=",
|
||||||
"owner": "cachix",
|
"owner": "cachix",
|
||||||
"repo": "devenv",
|
"repo": "devenv",
|
||||||
"rev": "d59d872d80876d9eeb3e214d3b088bc4a14a9c4f",
|
"rev": "5706f600b4b6799d5dade8602f85cfd2e060b2f3",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -36,17 +36,16 @@
|
|||||||
"git-hooks": {
|
"git-hooks": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat",
|
"flake-compat": "flake-compat",
|
||||||
"gitignore": "gitignore",
|
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1781733627,
|
"lastModified": 1784288435,
|
||||||
"narHash": "sha256-U3yTuGBnmXvXoQI3qkpfEDsn9RovQPAjN7ndRco+3u0=",
|
"narHash": "sha256-ReRHaLgr/uVqdD8afFSn+myXIfpHeOhP0yYe0TJqAA8=",
|
||||||
"owner": "cachix",
|
"owner": "cachix",
|
||||||
"repo": "git-hooks.nix",
|
"repo": "git-hooks.nix",
|
||||||
"rev": "3bbec39bc90eadfa031e6f3b77272f3f60803e39",
|
"rev": "43b3c1ab9d40fb1dbb008f451988a91e375825e9",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -55,37 +54,16 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"gitignore": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"git-hooks",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1709087332,
|
|
||||||
"narHash": "sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs=",
|
|
||||||
"owner": "hercules-ci",
|
|
||||||
"repo": "gitignore.nix",
|
|
||||||
"rev": "637db329424fd7e46cf4185293b9cc8c88c95394",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "hercules-ci",
|
|
||||||
"repo": "gitignore.nix",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs-src": "nixpkgs-src"
|
"nixpkgs-src": "nixpkgs-src"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1781620901,
|
"lastModified": 1786472144,
|
||||||
"narHash": "sha256-UF6scQlG+6lRkZBUpn/3KNavhOo5G8kDWhjVHcno8uc=",
|
"narHash": "sha256-W1wLGKZKGtnTWGRFgjbsVQleuO6jgMweaSAbFltLkN0=",
|
||||||
"owner": "cachix",
|
"owner": "cachix",
|
||||||
"repo": "devenv-nixpkgs",
|
"repo": "devenv-nixpkgs",
|
||||||
"rev": "2df109b343d3c68efd752e32a444a1d9b9f89afa",
|
"rev": "ea21d30f66a051c7cd750692a2af8d56e0ec4bfb",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -98,11 +76,11 @@
|
|||||||
"nixpkgs-src": {
|
"nixpkgs-src": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1781454065,
|
"lastModified": 1786098110,
|
||||||
"narHash": "sha256-d2xfDjnfRuf/xYGdu9VVRHiav/2w5hDL/5cw2TuVAXw=",
|
"narHash": "sha256-shi1tjDhCGGd0kIgVPNY03V8NBWSTzhMSFDb7IqSoec=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "9eac87a12312b8f60dd52e1c6e1a265f6fc7f5fc",
|
"rev": "afb4584a80bbf779ce0f691509ff902d188c2b3d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -127,11 +105,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1780220602,
|
"lastModified": 1785945821,
|
||||||
"narHash": "sha256-eynAfOmbmxJnkp7YewvCEbShNnnYJ9gLLqkzsYtBPeM=",
|
"narHash": "sha256-NLSyTCW4K4ofhNBllt3omPasm6QpralXH1DBZOc91Dw=",
|
||||||
"owner": "numtide",
|
"owner": "numtide",
|
||||||
"repo": "treefmt-nix",
|
"repo": "treefmt-nix",
|
||||||
"rev": "db947814a175b7ca6ded66e21383d938df01c227",
|
"rev": "ae7910970dddc408fe6ab1c8e4b277bb21d72dc0",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
18
flake.lock
generated
18
flake.lock
generated
@@ -7,11 +7,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1784350909,
|
"lastModified": 1785119570,
|
||||||
"narHash": "sha256-ZWyzLbS1yKUTeFJLmdVuWNnHttL333/ldJbEE+KzCrM=",
|
"narHash": "sha256-Rgs2xKnGLFWQscxUaXX07oyZeuMDOHEbqDOsgliLFGM=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "4ce190229c73d44536caa7072f6308fb2d8feeb3",
|
"rev": "d4fd24667c8cbef124bb70a20380cab75ec8474d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -38,11 +38,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1784432872,
|
"lastModified": 1786430034,
|
||||||
"narHash": "sha256-n3gKTBIV4ZA5VQpUakffBe3KGu4+mhPoA34rrqS0GkA=",
|
"narHash": "sha256-Vux08kA5PICwS2sViCMfwVLAHNoH8TkKAeBo25LjpMI=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "fd1462031fdee08f65fd0b4c6b64e22239a77870",
|
"rev": "70cc4559b10a6062b05ff1af17e0add065ccaed9",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -54,11 +54,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-unstable": {
|
"nixpkgs-unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1784555310,
|
"lastModified": 1786348146,
|
||||||
"narHash": "sha256-/FCliTPgiuV1owejZFNx3Ch9irdvkOfOFl+HHZ+DrtM=",
|
"narHash": "sha256-we5zDEFfn8TgzeWKjKDMIjeQZ59omEPl23NIF+13/ys=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "421eebfd0ec7bccd4abe826ce62d7e6e83129493",
|
"rev": "d482ef84049d9b7276b83a06e4e4d76983830097",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -1,7 +1,3 @@
|
|||||||
# 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
|
{ config
|
||||||
, lib
|
, lib
|
||||||
, pkgs
|
, pkgs
|
||||||
@@ -10,32 +6,24 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
# Include the results of the hardware scan.
|
|
||||||
./hardware-configuration.nix
|
./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
|
|
||||||
../../modules/arduino-ide.nix
|
|
||||||
../../modules/devenv.nix
|
|
||||||
../../modules/vlc.nix
|
|
||||||
../../modules/btop.nix
|
|
||||||
../../modules/lazygit.nix
|
|
||||||
# ../../modules/bitwarden.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
features.modules = {
|
||||||
|
core.enable = true;
|
||||||
|
development.enable = true;
|
||||||
|
hardware.enable = true;
|
||||||
|
multimedia.enable = true;
|
||||||
|
system.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
|
||||||
boot.loader.systemd-boot.enable = false;
|
boot.loader.systemd-boot.enable = false;
|
||||||
boot.loader = {
|
boot.loader = {
|
||||||
efi = {
|
efi = {
|
||||||
canTouchEfiVariables = true;
|
canTouchEfiVariables = true;
|
||||||
efiSysMountPoint = "/boot/efi"; # ← use the same mount point here.
|
efiSysMountPoint = "/boot/efi";
|
||||||
};
|
};
|
||||||
grub = {
|
grub = {
|
||||||
efiSupport = true;
|
efiSupport = true;
|
||||||
@@ -76,5 +64,5 @@
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
system.stateVersion = "25.11"; # Did you read the comment?
|
system.stateVersion = "25.11";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,26 +1,19 @@
|
|||||||
# Edit this configuration file to define what should be installed on
|
|
||||||
# your system. Help is available in the configuration.nix(5) man page
|
|
||||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
|
||||||
|
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
# Include the results of the hardware scan.
|
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../../modules/common.nix
|
|
||||||
../../modules/users.nix
|
|
||||||
../../modules/locales.nix
|
|
||||||
../../modules/services.nix
|
|
||||||
../../modules/programs.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# Bootloader.
|
features.modules = {
|
||||||
|
core.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
boot.loader.grub.enable = true;
|
boot.loader.grub.enable = true;
|
||||||
boot.loader.grub.device = "/dev/vda";
|
boot.loader.grub.device = "/dev/vda";
|
||||||
boot.loader.grub.useOSProber = true;
|
boot.loader.grub.useOSProber = true;
|
||||||
|
|
||||||
networking.hostName = "frodo"; # Define your hostname.
|
networking.hostName = "frodo";
|
||||||
|
|
||||||
system.stateVersion = "25.11"; # Did you read the comment?
|
system.stateVersion = "25.11";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,37 +3,22 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../../modules/home-manager.nix
|
|
||||||
../../modules/common.nix
|
|
||||||
../../modules/users.nix
|
|
||||||
../../modules/locales.nix
|
|
||||||
../../modules/services.nix
|
|
||||||
../../modules/programs.nix
|
|
||||||
../../modules/gaming.nix
|
|
||||||
../../modules/obs-studio.nix
|
|
||||||
../../modules/garbage-collection.nix
|
|
||||||
../../modules/printing.nix
|
|
||||||
../../modules/docker.nix
|
|
||||||
../../modules/matrix.nix
|
|
||||||
../../modules/kdenlive.nix
|
|
||||||
../../modules/audacity.nix
|
|
||||||
../../modules/ollama.nix
|
|
||||||
../../modules/wireguard.nix
|
|
||||||
../../modules/qbittorrent.nix
|
|
||||||
../../modules/gimp.nix
|
|
||||||
../../modules/openscad.nix
|
|
||||||
../../modules/bambu-studio-flatpak.nix
|
|
||||||
../../modules/arduino-ide.nix
|
|
||||||
../../modules/bitwarden.nix
|
|
||||||
../../modules/vlc.nix
|
|
||||||
../../modules/devenv.nix
|
|
||||||
../../modules/btop.nix
|
|
||||||
../../modules/discord.nix
|
|
||||||
../../modules/lazygit.nix
|
|
||||||
../../modules/yazi.nix
|
|
||||||
./mtp-fix.nix
|
./mtp-fix.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
features.modules = {
|
||||||
|
core.enable = true;
|
||||||
|
ai.enable = true;
|
||||||
|
desktop.enable = true;
|
||||||
|
development.enable = true;
|
||||||
|
gaming.enable = true;
|
||||||
|
hardware.enable = true;
|
||||||
|
multimedia.enable = true;
|
||||||
|
networking.enable = true;
|
||||||
|
security.enable = true;
|
||||||
|
system.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
@@ -69,5 +54,5 @@
|
|||||||
|
|
||||||
virtualisation.libvirtd.enable = true;
|
virtualisation.libvirtd.enable = true;
|
||||||
|
|
||||||
system.stateVersion = "25.11"; # Did you read the comment?
|
system.stateVersion = "25.11";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,14 +3,13 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../../modules/common.nix
|
|
||||||
../../modules/users.nix
|
|
||||||
../../modules/locales.nix
|
|
||||||
../../modules/services.nix
|
|
||||||
../../modules/programs.nix
|
|
||||||
../../modules/gaming.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
features.modules = {
|
||||||
|
core.enable = true;
|
||||||
|
gaming.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
@@ -34,5 +33,5 @@
|
|||||||
|
|
||||||
virtualisation.libvirtd.enable = true;
|
virtualisation.libvirtd.enable = true;
|
||||||
|
|
||||||
system.stateVersion = "25.11"; # Did you read the comment?
|
system.stateVersion = "25.11";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,32 +3,20 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./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
|
|
||||||
../../modules/devenv.nix
|
|
||||||
../../modules/bitwarden.nix
|
|
||||||
../../modules/btop.nix
|
|
||||||
../../modules/vlc.nix
|
|
||||||
../../modules/lazygit.nix
|
|
||||||
../../modules/yazi.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
features.modules = {
|
||||||
|
core.enable = true;
|
||||||
|
desktop.enable = true;
|
||||||
|
development.enable = true;
|
||||||
|
hardware.enable = true;
|
||||||
|
multimedia.enable = true;
|
||||||
|
networking.enable = true;
|
||||||
|
security.enable = true;
|
||||||
|
system.enable = true;
|
||||||
|
work.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
@@ -90,5 +78,5 @@
|
|||||||
"149.210.174.226" = [ "kindertelefoon" ];
|
"149.210.174.226" = [ "kindertelefoon" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
system.stateVersion = "25.11"; # Did you read the comment?
|
system.stateVersion = "25.11";
|
||||||
}
|
}
|
||||||
|
|||||||
6
modules/ai/default.nix
Normal file
6
modules/ai/default.nix
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{ lib, ... }: {
|
||||||
|
imports = lib.mapAttrsToList
|
||||||
|
(file: _: ./. + "/${file}")
|
||||||
|
(lib.filterAttrs (file: _: lib.hasSuffix ".nix" file && file != "default.nix")
|
||||||
|
(builtins.readDir ./.));
|
||||||
|
}
|
||||||
13
modules/ai/ollama.nix
Normal file
13
modules/ai/ollama.nix
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
{ config, lib, pkgsUnstable, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
dirModules = config.features.modules.ai or { };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf ((dirModules.enable or false) && (dirModules.ollama.enable or true)) {
|
||||||
|
services.ollama = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgsUnstable.ollama-cuda;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
arduino-ide
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
audacity
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
azuredatastudio
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
services.flatpak.update.onActivation = true;
|
|
||||||
services.flatpak.enable = true;
|
|
||||||
services.flatpak.packages = [
|
|
||||||
"com.bambulab.BambuStudio"
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
nixpkgs.config.permittedInsecurePackages = [
|
|
||||||
"electron-39.8.10"
|
|
||||||
];
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
bitwarden-desktop
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
btop
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
|
|
||||||
nix.settings.experimental-features = [
|
|
||||||
"nix-command"
|
|
||||||
"flakes"
|
|
||||||
];
|
|
||||||
|
|
||||||
users.defaultUserShell = pkgs.zsh;
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
chromium
|
|
||||||
gnumake
|
|
||||||
jetbrains-toolbox
|
|
||||||
fastfetch
|
|
||||||
jq
|
|
||||||
];
|
|
||||||
|
|
||||||
security.rtkit.enable = true;
|
|
||||||
|
|
||||||
system.stateVersion = "25.11";
|
|
||||||
}
|
|
||||||
29
modules/core/common.nix
Normal file
29
modules/core/common.nix
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
dirModules = config.features.modules.core or { };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf ((dirModules.enable or false) && (dirModules.common.enable or true)) {
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
|
nix.settings.experimental-features = [
|
||||||
|
"nix-command"
|
||||||
|
"flakes"
|
||||||
|
];
|
||||||
|
|
||||||
|
users.defaultUserShell = pkgs.zsh;
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
chromium
|
||||||
|
gnumake
|
||||||
|
jetbrains-toolbox
|
||||||
|
fastfetch
|
||||||
|
jq
|
||||||
|
];
|
||||||
|
|
||||||
|
security.rtkit.enable = true;
|
||||||
|
|
||||||
|
system.stateVersion = "25.11";
|
||||||
|
};
|
||||||
|
}
|
||||||
6
modules/core/default.nix
Normal file
6
modules/core/default.nix
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{ lib, ... }: {
|
||||||
|
imports = lib.mapAttrsToList
|
||||||
|
(file: _: ./. + "/${file}")
|
||||||
|
(lib.filterAttrs (file: _: lib.hasSuffix ".nix" file && file != "default.nix")
|
||||||
|
(builtins.readDir ./.));
|
||||||
|
}
|
||||||
18
modules/core/home-manager.nix
Normal file
18
modules/core/home-manager.nix
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
{ config, lib, pkgs, pkgsUnstable, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
dirModules = config.features.modules.core or { };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf ((dirModules.enable or false) && (dirModules.home-manager.enable or true)) {
|
||||||
|
home-manager = {
|
||||||
|
useGlobalPkgs = true;
|
||||||
|
useUserPackages = true;
|
||||||
|
extraSpecialArgs = {
|
||||||
|
inherit pkgsUnstable;
|
||||||
|
};
|
||||||
|
|
||||||
|
users.avravels = import ../home/home.nix;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
23
modules/core/locales.nix
Normal file
23
modules/core/locales.nix
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
dirModules = config.features.modules.core or { };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf ((dirModules.enable or false) && (dirModules.locales.enable or true)) {
|
||||||
|
time.timeZone = "Europe/Amsterdam";
|
||||||
|
|
||||||
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
i18n.extraLocaleSettings = {
|
||||||
|
LC_ADDRESS = "nl_NL.UTF-8";
|
||||||
|
LC_IDENTIFICATION = "nl_NL.UTF-8";
|
||||||
|
LC_MEASUREMENT = "nl_NL.UTF-8";
|
||||||
|
LC_MONETARY = "nl_NL.UTF-8";
|
||||||
|
LC_NAME = "nl_NL.UTF-8";
|
||||||
|
LC_NUMERIC = "nl_NL.UTF-8";
|
||||||
|
LC_PAPER = "nl_NL.UTF-8";
|
||||||
|
LC_TELEPHONE = "nl_NL.UTF-8";
|
||||||
|
LC_TIME = "nl_NL.UTF-8";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
17
modules/core/programs.nix
Normal file
17
modules/core/programs.nix
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
dirModules = config.features.modules.core or { };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf ((dirModules.enable or false) && (dirModules.programs.enable or true)) {
|
||||||
|
programs = {
|
||||||
|
zsh.enable = true;
|
||||||
|
|
||||||
|
hyprland.enable = true;
|
||||||
|
hyprland.xwayland.enable = true;
|
||||||
|
|
||||||
|
virt-manager.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
28
modules/core/services.nix
Normal file
28
modules/core/services.nix
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
dirModules = config.features.modules.core or { };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf ((dirModules.enable or false) && (dirModules.services.enable or true)) {
|
||||||
|
services.openssh.enable = true;
|
||||||
|
|
||||||
|
services = {
|
||||||
|
displayManager.gdm.enable = true;
|
||||||
|
desktopManager.gnome.enable = true;
|
||||||
|
|
||||||
|
xserver = {
|
||||||
|
enable = true;
|
||||||
|
xkb.layout = "us";
|
||||||
|
xkb.variant = "";
|
||||||
|
};
|
||||||
|
|
||||||
|
pulseaudio.enable = false;
|
||||||
|
|
||||||
|
pipewire.enable = true;
|
||||||
|
pipewire.alsa.enable = true;
|
||||||
|
pipewire.alsa.support32Bit = true;
|
||||||
|
pipewire.pulse.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
27
modules/core/users.nix
Normal file
27
modules/core/users.nix
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
dirModules = config.features.modules.core or { };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf ((dirModules.enable or false) && (dirModules.users.enable or true)) {
|
||||||
|
users.users.avravels = {
|
||||||
|
initialPassword = "welcome";
|
||||||
|
isNormalUser = true;
|
||||||
|
description = "Armel van Ravels";
|
||||||
|
extraGroups = [
|
||||||
|
"networkmanager"
|
||||||
|
"wheel"
|
||||||
|
"libvirtd"
|
||||||
|
"dialout"
|
||||||
|
];
|
||||||
|
packages = with pkgs; [
|
||||||
|
home-manager
|
||||||
|
spotify
|
||||||
|
proton-vpn
|
||||||
|
fzf
|
||||||
|
];
|
||||||
|
shell = pkgs.zsh;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
6
modules/desktop/default.nix
Normal file
6
modules/desktop/default.nix
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{ lib, ... }: {
|
||||||
|
imports = lib.mapAttrsToList
|
||||||
|
(file: _: ./. + "/${file}")
|
||||||
|
(lib.filterAttrs (file: _: lib.hasSuffix ".nix" file && file != "default.nix")
|
||||||
|
(builtins.readDir ./.));
|
||||||
|
}
|
||||||
12
modules/desktop/discord.nix
Normal file
12
modules/desktop/discord.nix
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
dirModules = config.features.modules.desktop or { };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf ((dirModules.enable or false) && (dirModules.discord.enable or true)) {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
discord
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
12
modules/desktop/matrix.nix
Normal file
12
modules/desktop/matrix.nix
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
dirModules = config.features.modules.desktop or { };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf ((dirModules.enable or false) && (dirModules.matrix.enable or true)) {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
element-desktop
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
12
modules/desktop/teams-for-linux.nix
Normal file
12
modules/desktop/teams-for-linux.nix
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
dirModules = config.features.modules.desktop or { };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf ((dirModules.enable or false) && (dirModules.teams-for-linux.enable or true)) {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
teams-for-linux
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
12
modules/development/azure-data-studio.nix
Normal file
12
modules/development/azure-data-studio.nix
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
dirModules = config.features.modules.development or { };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf ((dirModules.enable or false) && (dirModules.azure-data-studio.enable or true)) {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
azuredatastudio
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
6
modules/development/default.nix
Normal file
6
modules/development/default.nix
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{ lib, ... }: {
|
||||||
|
imports = lib.mapAttrsToList
|
||||||
|
(file: _: ./. + "/${file}")
|
||||||
|
(lib.filterAttrs (file: _: lib.hasSuffix ".nix" file && file != "default.nix")
|
||||||
|
(builtins.readDir ./.));
|
||||||
|
}
|
||||||
17
modules/development/devenv.nix
Normal file
17
modules/development/devenv.nix
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
{ config, lib, pkgsUnstable, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
dirModules = config.features.modules.development or { };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf ((dirModules.enable or false) && (dirModules.devenv.enable or true)) {
|
||||||
|
environment.systemPackages = with pkgsUnstable; [
|
||||||
|
devenv
|
||||||
|
];
|
||||||
|
|
||||||
|
nix.settings.trusted-users = [
|
||||||
|
"root"
|
||||||
|
"avravels"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
12
modules/development/docker.nix
Normal file
12
modules/development/docker.nix
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
dirModules = config.features.modules.development or { };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf ((dirModules.enable or false) && (dirModules.docker.enable or true)) {
|
||||||
|
virtualisation.docker.enable = true;
|
||||||
|
|
||||||
|
users.users.avravels.extraGroups = [ "docker" ];
|
||||||
|
};
|
||||||
|
}
|
||||||
12
modules/development/jq.nix
Normal file
12
modules/development/jq.nix
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
dirModules = config.features.modules.development or { };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf ((dirModules.enable or false) && (dirModules.jq.enable or true)) {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
jq
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
12
modules/development/lazygit.nix
Normal file
12
modules/development/lazygit.nix
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
dirModules = config.features.modules.development or { };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf ((dirModules.enable or false) && (dirModules.lazygit.enable or true)) {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
lazygit
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
12
modules/development/postman.nix
Normal file
12
modules/development/postman.nix
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
dirModules = config.features.modules.development or { };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf ((dirModules.enable or false) && (dirModules.postman.enable or true)) {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
postman
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
{ config, pkgsUnstable, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
environment.systemPackages = with pkgsUnstable; [
|
|
||||||
devenv
|
|
||||||
];
|
|
||||||
|
|
||||||
nix.settings.trusted-users = [
|
|
||||||
"root"
|
|
||||||
"avravels"
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
discord
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
virtualisation.docker.enable = true;
|
|
||||||
|
|
||||||
users.users.avravels.extraGroups = [ "docker" ];
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
services.dnsmasq = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
settings = {
|
|
||||||
server = [
|
|
||||||
"1.1.1.1"
|
|
||||||
"8.8.8.8"
|
|
||||||
];
|
|
||||||
address = [ "/.enova.local/127.0.0.1" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
18
modules/features/default.nix
Normal file
18
modules/features/default.nix
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
{ lib, ... }:
|
||||||
|
let
|
||||||
|
modulesDir = ../.;
|
||||||
|
moduleDirs = builtins.readDir modulesDir;
|
||||||
|
|
||||||
|
excludeDirs = [ "home" "features" ];
|
||||||
|
|
||||||
|
dirEntries = lib.filterAttrs
|
||||||
|
(name: type: type == "directory" && !builtins.elem name excludeDirs)
|
||||||
|
moduleDirs;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.features.modules = lib.mkOption {
|
||||||
|
type = lib.types.attrs;
|
||||||
|
default = { };
|
||||||
|
description = "Auto-generated feature module options tree";
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
filezilla
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
programs.steam = {
|
|
||||||
enable = true;
|
|
||||||
remotePlay.openFirewall = true;
|
|
||||||
localNetworkGameTransfers.openFirewall = true;
|
|
||||||
package = pkgs.steam.override {
|
|
||||||
extraEnv = {
|
|
||||||
MANGOHUD = "1";
|
|
||||||
WINE_VK_VULKAN_ONLY = "1";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages = [
|
|
||||||
pkgs.mangohud
|
|
||||||
];
|
|
||||||
}
|
|
||||||
6
modules/gaming/default.nix
Normal file
6
modules/gaming/default.nix
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{ lib, ... }: {
|
||||||
|
imports = lib.mapAttrsToList
|
||||||
|
(file: _: ./. + "/${file}")
|
||||||
|
(lib.filterAttrs (file: _: lib.hasSuffix ".nix" file && file != "default.nix")
|
||||||
|
(builtins.readDir ./.));
|
||||||
|
}
|
||||||
24
modules/gaming/gaming.nix
Normal file
24
modules/gaming/gaming.nix
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
dirModules = config.features.modules.gaming or { };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf ((dirModules.enable or false) && (dirModules.gaming.enable or true)) {
|
||||||
|
programs.steam = {
|
||||||
|
enable = true;
|
||||||
|
remotePlay.openFirewall = true;
|
||||||
|
localNetworkGameTransfers.openFirewall = true;
|
||||||
|
package = pkgs.steam.override {
|
||||||
|
extraEnv = {
|
||||||
|
MANGOHUD = "1";
|
||||||
|
WINE_VK_VULKAN_ONLY = "1";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = [
|
||||||
|
pkgs.mangohud
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
nix = {
|
|
||||||
settings.auto-optimise-store = true;
|
|
||||||
gc = {
|
|
||||||
automatic = true;
|
|
||||||
dates = "weekly";
|
|
||||||
options = "--delete-older-than 7d";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
gimp
|
|
||||||
];
|
|
||||||
}
|
|
||||||
12
modules/hardware/arduino-ide.nix
Normal file
12
modules/hardware/arduino-ide.nix
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
dirModules = config.features.modules.hardware or { };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf ((dirModules.enable or false) && (dirModules.arduino-ide.enable or true)) {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
arduino-ide
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
14
modules/hardware/bambu-studio-flatpak.nix
Normal file
14
modules/hardware/bambu-studio-flatpak.nix
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
dirModules = config.features.modules.hardware or { };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf ((dirModules.enable or false) && (dirModules.bambu-studio-flatpak.enable or true)) {
|
||||||
|
services.flatpak.update.onActivation = true;
|
||||||
|
services.flatpak.enable = true;
|
||||||
|
services.flatpak.packages = [
|
||||||
|
"com.bambulab.BambuStudio"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
6
modules/hardware/default.nix
Normal file
6
modules/hardware/default.nix
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{ lib, ... }: {
|
||||||
|
imports = lib.mapAttrsToList
|
||||||
|
(file: _: ./. + "/${file}")
|
||||||
|
(lib.filterAttrs (file: _: lib.hasSuffix ".nix" file && file != "default.nix")
|
||||||
|
(builtins.readDir ./.));
|
||||||
|
}
|
||||||
12
modules/hardware/openscad.nix
Normal file
12
modules/hardware/openscad.nix
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
dirModules = config.features.modules.hardware or { };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf ((dirModules.enable or false) && (dirModules.openscad.enable or true)) {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
openscad
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
47
modules/hardware/printing.nix
Normal file
47
modules/hardware/printing.nix
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
dirModules = config.features.modules.hardware or { };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf ((dirModules.enable or false) && (dirModules.printing.enable or true)) {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
cnijfilter2
|
||||||
|
];
|
||||||
|
|
||||||
|
services.printing = {
|
||||||
|
enable = true;
|
||||||
|
drivers = [ pkgs.cnijfilter2 ];
|
||||||
|
};
|
||||||
|
|
||||||
|
services.avahi = {
|
||||||
|
enable = true;
|
||||||
|
nssmdns4 = true;
|
||||||
|
openFirewall = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
hardware.printers = {
|
||||||
|
ensurePrinters = [
|
||||||
|
{
|
||||||
|
name = "CanonTS3100";
|
||||||
|
location = "Home";
|
||||||
|
deviceUri = "dnssd://Canon%20TS3100%20series._ipp._tcp.local/?uuid=00000000-0000-1000-8000-0018271a7e44";
|
||||||
|
model = "canonts3100.ppd";
|
||||||
|
ppdOptions = {
|
||||||
|
PageSize = "A4";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
ensureDefaultPrinter = "CanonTS3100";
|
||||||
|
};
|
||||||
|
|
||||||
|
# for samba
|
||||||
|
networking.hosts = {
|
||||||
|
"192.168.68.60" = [
|
||||||
|
"2C2919000000.local"
|
||||||
|
"2C2919000000"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
{ pkgs, pkgsUnstable, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
home-manager = {
|
|
||||||
useGlobalPkgs = true;
|
|
||||||
useUserPackages = true;
|
|
||||||
extraSpecialArgs = {
|
|
||||||
inherit pkgsUnstable;
|
|
||||||
};
|
|
||||||
|
|
||||||
users.avravels = import home/home.nix;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -10,6 +10,7 @@
|
|||||||
extraPackages = [
|
extraPackages = [
|
||||||
pkgs.ueberzugpp
|
pkgs.ueberzugpp
|
||||||
pkgs.imagemagick
|
pkgs.imagemagick
|
||||||
|
pkgs.intelephense
|
||||||
];
|
];
|
||||||
|
|
||||||
plugins = with pkgs.vimPlugins; [
|
plugins = with pkgs.vimPlugins; [
|
||||||
|
|||||||
@@ -11,6 +11,38 @@ let
|
|||||||
continue.continue
|
continue.continue
|
||||||
vue.volar
|
vue.volar
|
||||||
ms-vscode-remote.remote-containers
|
ms-vscode-remote.remote-containers
|
||||||
|
(pkgs.vscode-utils.buildVscodeMarketplaceExtension {
|
||||||
|
mktplcRef = {
|
||||||
|
publisher = "ryanluker";
|
||||||
|
name = "vscode-coverage-gutters";
|
||||||
|
version = "2.14.0"; # use the current version
|
||||||
|
sha256 = "sha256-waF3FmncUsXqWFWGRy9X7RQ29BDRYlaqyFhEXg4HXNo";
|
||||||
|
};
|
||||||
|
})
|
||||||
|
(pkgs.vscode-utils.buildVscodeMarketplaceExtension {
|
||||||
|
mktplcRef = {
|
||||||
|
publisher = "laravel";
|
||||||
|
name = "vscode-laravel";
|
||||||
|
version = "1.7.0"; # use the current version
|
||||||
|
sha256 = "sha256-5PVbv5hWIdsOHvYttnf2BPeqfPXsOVENrnRyiUf/Hlg=";
|
||||||
|
};
|
||||||
|
})
|
||||||
|
(pkgs.vscode-utils.buildVscodeMarketplaceExtension {
|
||||||
|
mktplcRef = {
|
||||||
|
publisher = "amiralizadeh9480";
|
||||||
|
name = "laravel-extra-intellisense";
|
||||||
|
version = "0.7.4"; # use the current version
|
||||||
|
sha256 = "sha256-EoyKm2YYfEZDmI1mqRU/SaNk0bNLPrWVINpIhglnL80=";
|
||||||
|
};
|
||||||
|
})
|
||||||
|
(pkgs.vscode-utils.buildVscodeMarketplaceExtension {
|
||||||
|
mktplcRef = {
|
||||||
|
publisher = "recca0120";
|
||||||
|
name = "vscode-phpunit";
|
||||||
|
version = "3.9.40"; # use the current version
|
||||||
|
sha256 = "sha256-EVyDT5aXu1KsGr8xrBQlIRCMOtiCyHgU7aDjl9d9ldY=";
|
||||||
|
};
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
userSettings = {
|
userSettings = {
|
||||||
@@ -18,11 +50,18 @@ let
|
|||||||
"workbench.colorTheme" = "Catppuccin Mocha";
|
"workbench.colorTheme" = "Catppuccin Mocha";
|
||||||
"workbench.editor.enablePreview" = false;
|
"workbench.editor.enablePreview" = false;
|
||||||
"direnv.restart.automatic" = true;
|
"direnv.restart.automatic" = true;
|
||||||
|
|
||||||
"terminal.integrated.defaultProfile.linux" = "zsh";
|
"terminal.integrated.defaultProfile.linux" = "zsh";
|
||||||
"terminal.integrated.profiles.linux".zsh = {
|
"terminal.integrated.profiles.linux".zsh = {
|
||||||
path = "${pkgs.zsh}/bin/zsh";
|
path = "${pkgs.zsh}/bin/zsh";
|
||||||
};
|
};
|
||||||
|
"coverage-gutters.coverageBaseDir" = "test-reports";
|
||||||
|
# PHPUnit
|
||||||
|
"phpunit.command" =
|
||||||
|
"docker compose exec laravel.test \${php} \${phpargs} \${phpunit} \${phpunitargs}";
|
||||||
|
"phpunit.phpunit" = "artisan test";
|
||||||
|
"phpunit.paths" = {
|
||||||
|
"\${workspaceFolder}" = "/var/www/html";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
editors = {
|
editors = {
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
jq
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
kdePackages.kdenlive
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
lazygit
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
time.timeZone = "Europe/Amsterdam";
|
|
||||||
|
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
|
||||||
i18n.extraLocaleSettings = {
|
|
||||||
LC_ADDRESS = "nl_NL.UTF-8";
|
|
||||||
LC_IDENTIFICATION = "nl_NL.UTF-8";
|
|
||||||
LC_MEASUREMENT = "nl_NL.UTF-8";
|
|
||||||
LC_MONETARY = "nl_NL.UTF-8";
|
|
||||||
LC_NAME = "nl_NL.UTF-8";
|
|
||||||
LC_NUMERIC = "nl_NL.UTF-8";
|
|
||||||
LC_PAPER = "nl_NL.UTF-8";
|
|
||||||
LC_TELEPHONE = "nl_NL.UTF-8";
|
|
||||||
LC_TIME = "nl_NL.UTF-8";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
element-desktop
|
|
||||||
];
|
|
||||||
}
|
|
||||||
12
modules/multimedia/audacity.nix
Normal file
12
modules/multimedia/audacity.nix
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
dirModules = config.features.modules.multimedia or { };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf ((dirModules.enable or false) && (dirModules.audacity.enable or true)) {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
audacity
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
6
modules/multimedia/default.nix
Normal file
6
modules/multimedia/default.nix
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{ lib, ... }: {
|
||||||
|
imports = lib.mapAttrsToList
|
||||||
|
(file: _: ./. + "/${file}")
|
||||||
|
(lib.filterAttrs (file: _: lib.hasSuffix ".nix" file && file != "default.nix")
|
||||||
|
(builtins.readDir ./.));
|
||||||
|
}
|
||||||
12
modules/multimedia/gimp.nix
Normal file
12
modules/multimedia/gimp.nix
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
dirModules = config.features.modules.multimedia or { };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf ((dirModules.enable or false) && (dirModules.gimp.enable or true)) {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
gimp
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
12
modules/multimedia/kdenlive.nix
Normal file
12
modules/multimedia/kdenlive.nix
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
dirModules = config.features.modules.multimedia or { };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf ((dirModules.enable or false) && (dirModules.kdenlive.enable or true)) {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
kdePackages.kdenlive
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
15
modules/multimedia/obs-studio.nix
Normal file
15
modules/multimedia/obs-studio.nix
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
dirModules = config.features.modules.multimedia or { };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf ((dirModules.enable or false) && (dirModules.obs-studio.enable or true)) {
|
||||||
|
programs.obs-studio = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.obs-studio.override {
|
||||||
|
cudaSupport = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
12
modules/multimedia/vlc.nix
Normal file
12
modules/multimedia/vlc.nix
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
dirModules = config.features.modules.multimedia or { };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf ((dirModules.enable or false) && (dirModules.vlc.enable or true)) {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
vlc
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
6
modules/networking/default.nix
Normal file
6
modules/networking/default.nix
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{ lib, ... }: {
|
||||||
|
imports = lib.mapAttrsToList
|
||||||
|
(file: _: ./. + "/${file}")
|
||||||
|
(lib.filterAttrs (file: _: lib.hasSuffix ".nix" file && file != "default.nix")
|
||||||
|
(builtins.readDir ./.));
|
||||||
|
}
|
||||||
12
modules/networking/filezilla.nix
Normal file
12
modules/networking/filezilla.nix
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
dirModules = config.features.modules.networking or { };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf ((dirModules.enable or false) && (dirModules.filezilla.enable or true)) {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
filezilla
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
12
modules/networking/qbittorrent.nix
Normal file
12
modules/networking/qbittorrent.nix
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
dirModules = config.features.modules.networking or { };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf ((dirModules.enable or false) && (dirModules.qbittorrent.enable or true)) {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
qbittorrent
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
12
modules/networking/remmina.nix
Normal file
12
modules/networking/remmina.nix
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
dirModules = config.features.modules.networking or { };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf ((dirModules.enable or false) && (dirModules.remmina.enable or true)) {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
remmina
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
12
modules/networking/socat.nix
Normal file
12
modules/networking/socat.nix
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
dirModules = config.features.modules.networking or { };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf ((dirModules.enable or false) && (dirModules.socat.enable or true)) {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
socat
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
12
modules/networking/wireguard.nix
Normal file
12
modules/networking/wireguard.nix
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
dirModules = config.features.modules.networking or { };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf ((dirModules.enable or false) && (dirModules.wireguard.enable or true)) {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
wireguard-tools
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
programs.obs-studio = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.obs-studio.override {
|
|
||||||
cudaSupport = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
{ pkgsUnstable, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
services.ollama = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgsUnstable.ollama-cuda;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
openscad
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
postman
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,42 +0,0 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
cnijfilter2
|
|
||||||
];
|
|
||||||
|
|
||||||
services.printing = {
|
|
||||||
enable = true;
|
|
||||||
drivers = [ pkgs.cnijfilter2 ];
|
|
||||||
};
|
|
||||||
|
|
||||||
services.avahi = {
|
|
||||||
enable = true;
|
|
||||||
nssmdns4 = true;
|
|
||||||
openFirewall = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
hardware.printers = {
|
|
||||||
ensurePrinters = [
|
|
||||||
{
|
|
||||||
name = "CanonTS3100";
|
|
||||||
location = "Home";
|
|
||||||
deviceUri = "dnssd://Canon%20TS3100%20series._ipp._tcp.local/?uuid=00000000-0000-1000-8000-0018271a7e44";
|
|
||||||
model = "canonts3100.ppd";
|
|
||||||
ppdOptions = {
|
|
||||||
PageSize = "A4";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
ensureDefaultPrinter = "CanonTS3100";
|
|
||||||
};
|
|
||||||
|
|
||||||
# for samba
|
|
||||||
networking.hosts = {
|
|
||||||
"192.168.68.60" = [
|
|
||||||
"2C2919000000.local"
|
|
||||||
"2C2919000000"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
programs = {
|
|
||||||
zsh.enable = true;
|
|
||||||
|
|
||||||
hyprland.enable = true;
|
|
||||||
hyprland.xwayland.enable = true;
|
|
||||||
|
|
||||||
virt-manager.enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
qbittorrent
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
remmina
|
|
||||||
];
|
|
||||||
}
|
|
||||||
16
modules/security/bitwarden.nix
Normal file
16
modules/security/bitwarden.nix
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
dirModules = config.features.modules.security or { };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf ((dirModules.enable or false) && (dirModules.bitwarden.enable or true)) {
|
||||||
|
nixpkgs.config.permittedInsecurePackages = [
|
||||||
|
"electron-39.8.10"
|
||||||
|
];
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
bitwarden-desktop
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
6
modules/security/default.nix
Normal file
6
modules/security/default.nix
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{ lib, ... }: {
|
||||||
|
imports = lib.mapAttrsToList
|
||||||
|
(file: _: ./. + "/${file}")
|
||||||
|
(lib.filterAttrs (file: _: lib.hasSuffix ".nix" file && file != "default.nix")
|
||||||
|
(builtins.readDir ./.));
|
||||||
|
}
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
services.openssh.enable = true;
|
|
||||||
|
|
||||||
services = {
|
|
||||||
displayManager.gdm.enable = true;
|
|
||||||
desktopManager.gnome.enable = true;
|
|
||||||
|
|
||||||
xserver = {
|
|
||||||
enable = true;
|
|
||||||
xkb.layout = "us";
|
|
||||||
xkb.variant = "";
|
|
||||||
};
|
|
||||||
|
|
||||||
pulseaudio.enable = false;
|
|
||||||
|
|
||||||
pipewire.enable = true;
|
|
||||||
pipewire.alsa.enable = true;
|
|
||||||
pipewire.alsa.support32Bit = true;
|
|
||||||
pipewire.pulse.enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
12
modules/system/btop.nix
Normal file
12
modules/system/btop.nix
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
dirModules = config.features.modules.system or { };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf ((dirModules.enable or false) && (dirModules.btop.enable or true)) {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
btop
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
12
modules/system/bubblewrap.nix
Normal file
12
modules/system/bubblewrap.nix
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
dirModules = config.features.modules.system or { };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf ((dirModules.enable or false) && (dirModules.bubblewrap.enable or true)) {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
bubblewrap
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
6
modules/system/default.nix
Normal file
6
modules/system/default.nix
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{ lib, ... }: {
|
||||||
|
imports = lib.mapAttrsToList
|
||||||
|
(file: _: ./. + "/${file}")
|
||||||
|
(lib.filterAttrs (file: _: lib.hasSuffix ".nix" file && file != "default.nix")
|
||||||
|
(builtins.readDir ./.));
|
||||||
|
}
|
||||||
17
modules/system/garbage-collection.nix
Normal file
17
modules/system/garbage-collection.nix
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
dirModules = config.features.modules.system or { };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf ((dirModules.enable or false) && (dirModules.garbage-collection.enable or true)) {
|
||||||
|
nix = {
|
||||||
|
settings.auto-optimise-store = true;
|
||||||
|
gc = {
|
||||||
|
automatic = true;
|
||||||
|
dates = "weekly";
|
||||||
|
options = "--delete-older-than 7d";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
12
modules/system/yazi.nix
Normal file
12
modules/system/yazi.nix
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
dirModules = config.features.modules.system or { };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf ((dirModules.enable or false) && (dirModules.yazi.enable or true)) {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
yazi
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
teams-for-linux
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
users.users.avravels = {
|
|
||||||
initialPassword = "welcome";
|
|
||||||
isNormalUser = true;
|
|
||||||
description = "Armel van Ravels";
|
|
||||||
extraGroups = [
|
|
||||||
"networkmanager"
|
|
||||||
"wheel"
|
|
||||||
"libvirtd"
|
|
||||||
"dialout"
|
|
||||||
];
|
|
||||||
packages = with pkgs; [
|
|
||||||
home-manager
|
|
||||||
spotify
|
|
||||||
proton-vpn
|
|
||||||
fzf
|
|
||||||
];
|
|
||||||
shell = pkgs.zsh;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
vlc
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
wireguard-tools
|
|
||||||
];
|
|
||||||
}
|
|
||||||
6
modules/work/default.nix
Normal file
6
modules/work/default.nix
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{ lib, ... }: {
|
||||||
|
imports = lib.mapAttrsToList
|
||||||
|
(file: _: ./. + "/${file}")
|
||||||
|
(lib.filterAttrs (file: _: lib.hasSuffix ".nix" file && file != "default.nix")
|
||||||
|
(builtins.readDir ./.));
|
||||||
|
}
|
||||||
20
modules/work/enova.nix
Normal file
20
modules/work/enova.nix
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
dirModules = config.features.modules.work or { };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = lib.mkIf ((dirModules.enable or false) && (dirModules.enova.enable or true)) {
|
||||||
|
services.dnsmasq = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
server = [
|
||||||
|
"1.1.1.1"
|
||||||
|
"8.8.8.8"
|
||||||
|
];
|
||||||
|
address = [ "/.enova.local/127.0.0.1" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
yazi
|
|
||||||
];
|
|
||||||
}
|
|
||||||
17
outputs.nix
17
outputs.nix
@@ -13,6 +13,21 @@ let
|
|||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
moduleNames = [
|
||||||
|
"ai"
|
||||||
|
"core"
|
||||||
|
"desktop"
|
||||||
|
"development"
|
||||||
|
"features"
|
||||||
|
"gaming"
|
||||||
|
"hardware"
|
||||||
|
"multimedia"
|
||||||
|
"networking"
|
||||||
|
"security"
|
||||||
|
"system"
|
||||||
|
"work"
|
||||||
|
];
|
||||||
|
|
||||||
mkHost =
|
mkHost =
|
||||||
name:
|
name:
|
||||||
nixpkgs.lib.nixosSystem {
|
nixpkgs.lib.nixosSystem {
|
||||||
@@ -27,7 +42,7 @@ let
|
|||||||
nix-flatpak.nixosModules.nix-flatpak
|
nix-flatpak.nixosModules.nix-flatpak
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
./hosts/${name}
|
./hosts/${name}
|
||||||
];
|
] ++ (map (mod: ./modules/${mod}) moduleNames);
|
||||||
};
|
};
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|||||||
Reference in New Issue
Block a user