Compare commits
1 Commits
master
...
feature/de
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
00a8168ef5 |
@@ -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,34 +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
|
|
||||||
../../modules/bubblewrap.nix
|
|
||||||
../../modules/socat.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;
|
||||||
@@ -92,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,8 +0,0 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
bubblewrap
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -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;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -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;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
socat
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
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