added a bunch of nixos modules

This commit is contained in:
2026-09-01 23:16:16 +02:00
parent cfa9ff6a54
commit 054f3f9994
31 changed files with 302 additions and 19 deletions
+6 -3
View File
@@ -14,9 +14,12 @@
inputs.nixpkgs.follows = "nixpkgs";
};
noctalia-greeter = {
url = "github:noctalia-dev/noctalia-greeter";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs: inputs.flake-parts.lib.mkFlake
{ inherit inputs; }
(inputs.import-tree ./modules);
outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } (inputs.import-tree ./modules);
}
+9
View File
@@ -0,0 +1,9 @@
{ self, ... }:
{
flake.modules.nixos.ai = {
imports = [
self.modules.nixos.ollama
# self.modules.nixos.open-webui
];
};
}
+5
View File
@@ -0,0 +1,5 @@
{ ... }: {
flake.modules.nixos.ollama = {
services.ollama.enable = true;
};
}
+6
View File
@@ -0,0 +1,6 @@
{ ... }: {
flake.modules.nixos.open-webui = {
services.open-webui.enable = true;
services.open-webui.port = 7070;
};
}
+4
View File
@@ -3,6 +3,10 @@
flake.modules.nixos.desktop = { ... }: {
imports = [
self.modules.nixos.hyprland
self.modules.nixos.noctalia-greeter
self.modules.nixos.xserver
self.modules.nixos.gnome-services
self.modules.nixos.wayland
];
};
flake.modules.homeManager.desktop = { ... }: {
+6
View File
@@ -0,0 +1,6 @@
{ ... }: {
flake.modules.nixos.gnome = {
services.desktopManager.gnome.enable = false;
services.gnome.core-apps.enable = false;
};
}
+13
View File
@@ -0,0 +1,13 @@
{ ... }: {
flake.modules.nixos.gnome-services = {pkgs, ...}: {
programs.dconf.enable = true;
services.gnome.gnome-keyring.enable = true;
services.gnome.gnome-online-accounts.enable = true;
services.gnome.evolution-data-server.enable = true;
environment.variables = {
POOLKIT_AGENT = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
};
};
}
+2
View File
@@ -14,6 +14,8 @@ in
flake.modules.homeManager.hyprland = { pkgs, config, ... }: {
home.packages = [
pkgs.hyprpicker
pkgs.hypridle
pkgs.hyprshot
];
xdg.configFile = {
+20
View File
@@ -0,0 +1,20 @@
{ inputs, ... }:
{
flake.modules.nixos.noctalia-greeter = { pkgs, ... }: {
imports = [
inputs.noctalia-greeter.nixosModules.default
];
programs.noctalia-greeter = {
enable = true;
greeter-args = "";
settings = {
cursor = {
theme = "Bibata-Modern-Classic";
size = 24;
path = "${pkgs.bibata-cursors}/share/icons";
};
};
};
};
}
+28
View File
@@ -0,0 +1,28 @@
{ ... }: {
flake.modules.nixos.wayland = {
services.pulseaudio.enable = false;
security.rtkit.enable = true;
security.polkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
# If you want to use JACK applications, uncomment this
#jack.enable = true;
# use the example session manager (no others are packaged yet so this is enabled by default,
# no need to redefine it in your config for now)
#media-session.enable = true;
};
environment.variables = {
WLR_NO_HARDWARE_CURSORS = "1";
__GLX_VENDOR_LIBRARY_NAME = "nvidia";
GBM_BACKEND = "nvidia-drm";
WLR_RENDERER_ALLOW_SOFTWARE = "1"; # In case there are issues rendering
};
};
}
+16
View File
@@ -0,0 +1,16 @@
{ ... }: {
flake.modules.nixos.xserver = { pkgs, ... }: {
services.xserver.enable = true;
services.xserver.excludePackages = with pkgs; [
xterm
];
services.xserver.xkb = {
layout = "us";
variant = "";
};
};
}
-9
View File
@@ -1,9 +0,0 @@
{
...
}:
{
flake.modules.nixos.core = { pkgs, ... }: {
programs.steam.enable = true;
hardware.
};
}
+2
View File
@@ -4,6 +4,8 @@
imports = [
self.modules.nixos.cemu
self.modules.nixos.steam
self.modules.nixos.xbox-controller
self.modules.nixos.gpu-screenrecorder
];
};
}
+10
View File
@@ -0,0 +1,10 @@
{ ... }: {
flake.modules.nixos.gpu-screenrecorder = { pkgs, ... }: {
programs.gpu-screen-recorder.enable = true;
environment.systemPackages = with pkgs; [
gpu-screen-recorder
killall
libnotify
];
};
}
+9
View File
@@ -0,0 +1,9 @@
{ ... }: {
flake.modules.nixos.lutris = { pkgs, ... }: {
environment.systemPackages = with pkgs; [
lutris
];
};
}
+5
View File
@@ -0,0 +1,5 @@
{ ... }: {
flake.modules.nixos.xbox-controller = {
hardware.xone.enable = true;
};
}
+8
View File
@@ -0,0 +1,8 @@
{ ... }: {
flake.modules.nixos.flake = {
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
};
}
+27
View File
@@ -0,0 +1,27 @@
{ ... }: {
flake.modules.nixos.keyd = {
services.keyd = {
enable = true;
keyboards = {
default = {
ids = [ "*" ];
settings = {
main = {
capslock = "esc";
};
alt = {
u = "G-u";
a = "G-a";
o = "G-o";
s = "G-s";
U = "G-U";
A = "G-A";
O = "G-O";
S = "G-S";
};
};
};
};
};
};
}
+10
View File
@@ -0,0 +1,10 @@
{ self, ... }:
{
flake.modules.nixos.misc = { ... }: {
imports = [
self.modules.nixos.flake
self.modules.nixos.keyd
self.modules.nixos.stateversion
];
};
}
+8
View File
@@ -0,0 +1,8 @@
{ ... }: {
flake.modules.nixos.stateversion = {
system.stateVersion = "24.05";
};
flake.modules.homeManager.stateversion = {
home.stateVersion = "26.05";
};
}
+6
View File
@@ -0,0 +1,6 @@
{ ... }: {
flake.modules.nixos.mullvad = {
services.mullvad-vpn.enable = true;
services.mullvad-vpn.gui.enable = true;
};
}
+16
View File
@@ -0,0 +1,16 @@
{ self, ... }:
{
flake.modules.nixos.networking = { pkgs, ... }: {
imports = [
self.modules.nixos.mullvad
];
networking.networkmanager.enable = true;
environment.variables = {
PKG_CONFIG_PATH = "${pkgs.openssl.dev}/lib/pkgconfig";
};
};
}
+7
View File
@@ -0,0 +1,7 @@
{ }
# These are just remnants of something that does not work anymore. Need to fix it when i fid the chance
#
# nautilus-open-any-terminal
# nautilus-python
# turtle
# sushi
+5
View File
@@ -0,0 +1,5 @@
{ ... }: {
flake.modules.nixos.flatpak = {
services.flatpak.enable = true;
};
}
+14 -7
View File
@@ -1,13 +1,13 @@
{ self, inputs, ... }:
let
tools = pkgs: [
pkgs.playerctl
pkgs.imagemagick
pkgs.meld
pkgs.wl-clipboard
pkgs.steam-run
pkgs.sops
pkgs.pavucontrol
pkgs.playerctl
pkgs.imagemagick
pkgs.meld
pkgs.wl-clipboard
pkgs.steam-run
pkgs.sops
pkgs.pavucontrol
];
social = pkgs: [
@@ -23,15 +23,22 @@ let
pkgs.gnome-system-monitor
pkgs.nautilus
pkgs.baobab
pkgs.gnome-disk-utility
];
others = pkgs: [
pkgs.libreoffice-qt
pkgs.nextcloud-client
pkgs.vlc
pkgs.home-manager
];
in
{
flake.modules.nixos.programs = { ... }: {
imports = [
self.modules.nixos.flatpak
];
};
flake.modules.homeManager.programs = { pkgs, config, ... }: {
imports = [
self.modules.homeManager.obsidian
+7
View File
@@ -0,0 +1,7 @@
{ ... }: {
flake.modules.nixos.boot = {
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.kernelModules = [ "kvm-amd" ];
};
}
+20
View File
@@ -0,0 +1,20 @@
{ ... }: {
flake.modules.nixos.locale = {
time.timeZone = "Europe/Vienna";
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "de_AT.UTF-8";
LC_IDENTIFICATION = "de_AT.UTF-8";
LC_MEASUREMENT = "de_AT.UTF-8";
LC_MONETARY = "de_AT.UTF-8";
LC_NAME = "de_AT.UTF-8";
LC_NUMERIC = "de_AT.UTF-8";
LC_PAPER = "de_AT.UTF-8";
LC_TELEPHONE = "de_AT.UTF-8";
LC_TIME = "de_AT.UTF-8";
};
};
}
+8
View File
@@ -0,0 +1,8 @@
{ self, ... }: {
flake.modules.nixos.system = {
imports = [
self.modules.nixos.boot
self.modules.nixos.locale
];
};
}
+10
View File
@@ -0,0 +1,10 @@
{ ... }: {
flake.modules.nixos.docker = { pkgs, ... }: {
virtualisation.docker.enable = true;
virtualisation.docker.rootless.setSocketVariable = true;
virtualisation.docker.rootless.enable = true;
environment.systemPackages = with pkgs; [
docker-compose
];
};
}
+7
View File
@@ -0,0 +1,7 @@
{ ... }: {
flake.modules.nixos.virtmanager = {
programs.virt-manager.enable = true;
virtualisation.spiceUSBRedirection.enable = true;
virtualisation.libvirtd.enable = true;
};
}
@@ -0,0 +1,8 @@
{ self, ... }: {
flake.modules.nixos.virtualisation = {
imports = [
self.modules.nixos.docker
self.modules.nixos.virtmanager
];
};
}