Compare commits

...
Author SHA1 Message Date
cbb1c2fc26 base structure 2026-10-18 14:14:32 +02:00
5098629ff9 add more modules 2026-10-18 13:36:10 +02:00
59f13a5a06 add easyroam module 2026-10-18 13:31:55 +02:00
88a9ce1442 add core mod 2026-10-18 13:27:39 +02:00
17c76064b6 add boilerplate 2026-10-18 12:43:23 +02:00
3fbbe84dca add boot module 2026-10-18 12:32:12 +02:00
12 changed files with 122 additions and 8 deletions

View file

@ -1,9 +1,31 @@
{ self, inputs, ... }: { {
self,
inputs,
...
}:
let
mods = with self.nixosModules; [
user
packages
agenix
boot
core
easyroam
/etc/nixos/hardware-configuration.nix
];
in
{
flake.nixosConfigurations.nerv = inputs.nixpkgs.lib.nixosSystem { flake.nixosConfigurations.nerv = inputs.nixpkgs.lib.nixosSystem {
modules = with self.nixosModules; [ modules =
user with self.nixosModules;
packages [
/etc/nixos/hardware-configuration.nix {
]; config.dualBoot = true;
}
]
++ mods;
};
flake.nixosConfigurations.seele = inputs.nixpkgs.lib.nixosSystem {
modules = mods;
}; };
} }

5
modules/home/default.nix Normal file
View file

@ -0,0 +1,5 @@
{...}: {
flake.homeModules.lucy = {
};
}

1
modules/result Symbolic link
View file

@ -0,0 +1 @@
/nix/store/5jpn9svda3qw6mnzk9gbkzb4q7lg4vdw-nixos-system-nixos-26.05.20261015.26f4107

View file

@ -0,0 +1,16 @@
{ inputs, ... }: {
flake.nixosModules.easyroam = { config, ... }: {
imports = [
inputs.nix-easyroam.nixosModules.nix-easyroam
];
services.easyroam = {
enable = true;
pkcsFile = config.age.secrets.easyroam.path;
networkmanager.enable = true;
};
systemd.services.wpa_supplicant = {
wants = [ "easyroam-cert-setup.service" ];
after = [ "easyroam-cert-setup.service" ];
};
};
}

View file

@ -0,0 +1,10 @@
{ ... }: {
flake.nixosModules.pipewire = {
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
};
}

8
modules/services/tlp.nix Normal file
View file

@ -0,0 +1,8 @@
{ ... }: {
flake.nixosModules.tlp = {
services.tlp = {
enable = true;
pd.enable = true;
};
};
}

View file

@ -1,5 +1,8 @@
{ ... }: { {inputs, ... }: {
flake.nixosModules = { flake.nixosModules.agenix = {config, ...}: {
imports = [
inputs.agenix.nixosModules.default
];
age = { age = {
enable = true; enable = true;
identityPaths = [ "/var/lib/misc/key.age" ]; identityPaths = [ "/var/lib/misc/key.age" ];

View file

@ -0,0 +1,22 @@
{ lib, config, ... }: {
flake.nixosModules.boot = { config, ... }: {
options = {
dualBoot = lib.mkOption {
type = lib.types.bool;
default = false;
description = "wether to enable windows boot entry to limine or not";
};
};
config.boot.loader = {
efi.canTouchEfiVariables = true;
limine = {
enable = true;
extraEntries = lib.mkIf config.dualBoot ''
/Windows 11
protocol: efi_boot_entry
entry: Windows Boot Manager
'';
};
};
};
}

View file

@ -0,0 +1,26 @@
{ ... }: {
flake.nixosModules.core = {
time.timeZone = "Europe/Berlin";
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "de_DE.UTF-8";
LC_IDENTIFICATION = "de_DE.UTF-8";
LC_MEASUREMENT = "de_DE.UTF-8";
LC_MONETARY = "de_DE.UTF-8";
LC_NAME = "de_DE.UTF-8";
LC_NUMERIC = "de_DE.UTF-8";
LC_PAPER = "de_DE.UTF-8";
LC_TELEPHONE = "de_DE.UTF-8";
LC_TIME = "de_DE.UTF-8";
};
security = {
rtkit.enable = true;
polkit.enable = true; # polkit
# polkit.enablePkexecWrapper = true;
};
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
};
}

1
result Symbolic link
View file

@ -0,0 +1 @@
/nix/store/dv2b9jwqaymcsdiw2sp81h3xqfnlkac7-nixos-system-nixos-26.05.20261015.26f4107