mirror of
https://git.lgmrszd.xyz/Lgmrszd/nix-cfg.git
synced 2025-12-16 16:38:19 +01:00
Compare commits
12 commits
15f2eb9eb5
...
9b6b95c010
| Author | SHA1 | Date | |
|---|---|---|---|
| 9b6b95c010 | |||
| ef45ed92b6 | |||
| 0c56515750 | |||
| b7cf5f8ac1 | |||
| 46d60d17ea | |||
| afc66b54ad | |||
| d2266ad0ad | |||
| 28e385a147 | |||
| 216bb8b5a8 | |||
| 4ae9a96d1a | |||
| e09feb85c4 | |||
| b18f341935 |
5 changed files with 87 additions and 75 deletions
65
flake.lock
generated
65
flake.lock
generated
|
|
@ -16,11 +16,11 @@
|
||||||
"systems": "systems"
|
"systems": "systems"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1740420811,
|
"lastModified": 1744375272,
|
||||||
"narHash": "sha256-ZfSnVdW2S9G4dYFxnW7sB/XgBe2SR17WHTb0eDNkkOk=",
|
"narHash": "sha256-xvWbdTctLu5YWgcp+lNTh51GAY3vB2XEXUFKRMJUiCM=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "authentik-nix",
|
"repo": "authentik-nix",
|
||||||
"rev": "c79e9b78104e9d8c406445d575623c2770d7d99a",
|
"rev": "105b3b6c004ce00d1d3c7a88669bea4aadfd4580",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -32,16 +32,16 @@
|
||||||
"authentik-src": {
|
"authentik-src": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1740398117,
|
"lastModified": 1744135136,
|
||||||
"narHash": "sha256-eafk3lCFG3l1OKt8xoKZjbDFcOUFQgpivMMT4GjaNWU=",
|
"narHash": "sha256-7wvoCRhLipX4qzrb/ctsozG565yckx+moxiF6vRo84I=",
|
||||||
"owner": "goauthentik",
|
"owner": "goauthentik",
|
||||||
"repo": "authentik",
|
"repo": "authentik",
|
||||||
"rev": "5c5cc1c7daa4248c5a2c29ac47f3639d4eaa8ff5",
|
"rev": "74eab55c615b156e4191ee98dc789e2d58c016f9",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "goauthentik",
|
"owner": "goauthentik",
|
||||||
"ref": "version/2025.2.0",
|
"ref": "version/2025.2.4",
|
||||||
"repo": "authentik",
|
"repo": "authentik",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
|
@ -98,11 +98,11 @@
|
||||||
"nixpkgs-lib": "nixpkgs-lib"
|
"nixpkgs-lib": "nixpkgs-lib"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1738453229,
|
"lastModified": 1743550720,
|
||||||
"narHash": "sha256-7H9XgNiGLKN1G1CgRh0vUL4AheZSYzPm+zmZ7vxbJdo=",
|
"narHash": "sha256-hIshGgKZCgWh6AYJpJmRgFdR3WUbkY04o82X05xqQiY=",
|
||||||
"owner": "hercules-ci",
|
"owner": "hercules-ci",
|
||||||
"repo": "flake-parts",
|
"repo": "flake-parts",
|
||||||
"rev": "32ea77a06711b758da0ad9bd6a844c5740a87abd",
|
"rev": "c621e8422220273271f52058f618c94e405bb0f5",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -159,11 +159,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1739571712,
|
"lastModified": 1744380363,
|
||||||
"narHash": "sha256-0UdSDV/TBY+GuxXLbrLq3l2Fq02ciyKCIMy4qmnfJXQ=",
|
"narHash": "sha256-cXjAUuAfQDPSLSsckZuTioQ986iqSPTzx8D7dLAcC+Q=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "6d3163aea47fdb1fe19744e91306a2ea4f602292",
|
"rev": "e43c6bcb101ba3301522439c459288c4a248f624",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -185,11 +185,11 @@
|
||||||
"nixpkgs-24_11": "nixpkgs-24_11"
|
"nixpkgs-24_11": "nixpkgs-24_11"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1739121270,
|
"lastModified": 1742413977,
|
||||||
"narHash": "sha256-EmJhpy9U8sVlepl2QPjG019VfG67HcucsQNItTqW6cA=",
|
"narHash": "sha256-NkhM9GVu3HL+MiXtGD0TjuPCQ4GFVJPBZ8KyI2cFDGU=",
|
||||||
"owner": "simple-nixos-mailserver",
|
"owner": "simple-nixos-mailserver",
|
||||||
"repo": "nixos-mailserver",
|
"repo": "nixos-mailserver",
|
||||||
"rev": "8c1c4640b878c692dd3d8055e8cdea0a2bbd8cf3",
|
"rev": "b4fbffe79c00f19be94b86b4144ff67541613659",
|
||||||
"type": "gitlab"
|
"type": "gitlab"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -264,11 +264,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1739446958,
|
"lastModified": 1744232761,
|
||||||
"narHash": "sha256-+/bYK3DbPxMIvSL4zArkMX0LQvS7rzBKXnDXLfKyRVc=",
|
"narHash": "sha256-gbl9hE39nQRpZaLjhWKmEu5ejtQsgI5TWYrIVVJn30U=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "2ff53fe64443980e139eaa286017f53f88336dd0",
|
"rev": "f675531bc7e6657c10a18b565cfebd8aa9e24c14",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -295,14 +295,17 @@
|
||||||
},
|
},
|
||||||
"nixpkgs-lib": {
|
"nixpkgs-lib": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1738452942,
|
"lastModified": 1743296961,
|
||||||
"narHash": "sha256-vJzFZGaCpnmo7I6i416HaBLpC+hvcURh/BQwROcGIp8=",
|
"narHash": "sha256-b1EdN3cULCqtorQ4QeWgLMrd5ZGOjLSLemfa00heasc=",
|
||||||
"type": "tarball",
|
"owner": "nix-community",
|
||||||
"url": "https://github.com/NixOS/nixpkgs/archive/072a6db25e947df2f31aab9eccd0ab75d5b2da11.tar.gz"
|
"repo": "nixpkgs.lib",
|
||||||
|
"rev": "e4822aea2a6d1cdd36653c134cacfd64c97ff4fa",
|
||||||
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "tarball",
|
"owner": "nix-community",
|
||||||
"url": "https://github.com/NixOS/nixpkgs/archive/072a6db25e947df2f31aab9eccd0ab75d5b2da11.tar.gz"
|
"repo": "nixpkgs.lib",
|
||||||
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs-stable": {
|
"nixpkgs-stable": {
|
||||||
|
|
@ -339,11 +342,11 @@
|
||||||
"treefmt-nix": "treefmt-nix"
|
"treefmt-nix": "treefmt-nix"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1739883580,
|
"lastModified": 1743690424,
|
||||||
"narHash": "sha256-3ydikhrNaWy8j0cqHju/94PcD4GZ9T4Ju4rHh34oz3k=",
|
"narHash": "sha256-cX98bUuKuihOaRp8dNV1Mq7u6/CQZWTPth2IJPATBXc=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "poetry2nix",
|
"repo": "poetry2nix",
|
||||||
"rev": "d90f9db68a4bda31c346be16dfd8d3263be4547e",
|
"rev": "ce2369db77f45688172384bbeb962bc6c2ea6f94",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -375,11 +378,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1739262228,
|
"lastModified": 1744103455,
|
||||||
"narHash": "sha256-7JAGezJ0Dn5qIyA2+T4Dt/xQgAbhCglh6lzCekTVMeU=",
|
"narHash": "sha256-SR6+qjkPjGQG+8eM4dCcVtss8r9bre/LAxFMPJpaZeU=",
|
||||||
"owner": "Mic92",
|
"owner": "Mic92",
|
||||||
"repo": "sops-nix",
|
"repo": "sops-nix",
|
||||||
"rev": "07af005bb7d60c7f118d9d9f5530485da5d1e975",
|
"rev": "69d5a5a4635c27dae5a742f36108beccc506c1ba",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
||||||
14
flake.nix
14
flake.nix
|
|
@ -62,9 +62,23 @@
|
||||||
overlay-vaapiIntel = final: prev: {
|
overlay-vaapiIntel = final: prev: {
|
||||||
vaapiIntel = prev.vaapiIntel.override { enableHybridCodec = true; };
|
vaapiIntel = prev.vaapiIntel.override { enableHybridCodec = true; };
|
||||||
};
|
};
|
||||||
|
overlay-nitrokey-udev-update = final: prev: {
|
||||||
|
nitrokey-udev-rules = prev.nitrokey-udev-rules.overrideAttrs(old: {
|
||||||
|
version = "1.1.0";
|
||||||
|
src = prev.fetchFromGitHub {
|
||||||
|
owner = "Nitrokey";
|
||||||
|
repo = "nitrokey-udev-rules";
|
||||||
|
rev = "v1.1.0";
|
||||||
|
hash = "sha256-LKpd6O9suAc2+FFgpuyTClEgL/JiZiokH3DV8P3C7Aw=";
|
||||||
|
};
|
||||||
|
dontBuild = true;
|
||||||
|
doCheck = false;
|
||||||
|
});
|
||||||
|
};
|
||||||
my-overlays = [
|
my-overlays = [
|
||||||
overlay-stable
|
overlay-stable
|
||||||
overlay-vaapiIntel
|
overlay-vaapiIntel
|
||||||
|
overlay-nitrokey-udev-update
|
||||||
];
|
];
|
||||||
inherit (inputs.nix-cfg-extra.lib) extra-data;
|
inherit (inputs.nix-cfg-extra.lib) extra-data;
|
||||||
inherit (inputs.nix-cfg-extra.lib) extra-host-modules;
|
inherit (inputs.nix-cfg-extra.lib) extra-host-modules;
|
||||||
|
|
|
||||||
|
|
@ -13,14 +13,14 @@ in
|
||||||
./mounts.nix
|
./mounts.nix
|
||||||
./akkotest.nix
|
./akkotest.nix
|
||||||
];
|
];
|
||||||
# boot.kernelPackages = pkgs.linuxPackages_zen;
|
boot.kernelPackages = pkgs.linuxPackages_zen;
|
||||||
|
|
||||||
# Use the systemd-boot EFI boot loader.
|
# Use the systemd-boot EFI boot loader.
|
||||||
# NOT! Let's use GRUB instead
|
# NOT! Let's use GRUB instead
|
||||||
# https://nixos.org/manual/nixos/stable/#sec-installation
|
# https://nixos.org/manual/nixos/stable/#sec-installation
|
||||||
# boot.loader.efi.efiSysMountPoint = "/boot";
|
# boot.loader.efi.efiSysMountPoint = "/boot";
|
||||||
boot.loader.systemd-boot.enable = false;
|
boot.loader.systemd-boot.enable = false;
|
||||||
boot.loader.efi.canTouchEfiVariables = false;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
boot.loader.grub = {
|
boot.loader.grub = {
|
||||||
enable = true;
|
enable = true;
|
||||||
device = "nodev";
|
device = "nodev";
|
||||||
|
|
@ -31,33 +31,20 @@ in
|
||||||
rev = "803c5df0e83aba61668777bb96d90ab8f6847106";
|
rev = "803c5df0e83aba61668777bb96d90ab8f6847106";
|
||||||
hash = "sha256-/bSolCta8GCZ4lP0u5NVqYQ9Y3ZooYCNdTwORNvR7M0=";
|
hash = "sha256-/bSolCta8GCZ4lP0u5NVqYQ9Y3ZooYCNdTwORNvR7M0=";
|
||||||
}}/src/catppuccin-macchiato-grub-theme/";
|
}}/src/catppuccin-macchiato-grub-theme/";
|
||||||
efiInstallAsRemovable = true;
|
|
||||||
extraPerEntryConfig = "acpi ($drive1)//dsdt.aml";
|
|
||||||
# useOSProber = true;
|
# useOSProber = true;
|
||||||
extraEntries =
|
extraEntries =
|
||||||
''
|
''
|
||||||
menuentry 'Windows 10' --class windows --class os {
|
menuentry 'Veracrypt Boot Manager' --class windows --class os $menuentry_id_option 'osprober-efi-7C85-2DFB' {
|
||||||
insmod part_gpt
|
insmod part_gpt
|
||||||
insmod fat
|
insmod fat
|
||||||
set root='hd0,gpt4'
|
search --no-floppy --fs-uuid --set=root 7C85-2DFB
|
||||||
if [ x$feature_platform_search_hint = xy ]; then
|
chainloader /EFI/VeraCrypt/DcsBoot.efi
|
||||||
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 8D94-2A4E
|
|
||||||
else
|
|
||||||
search --no-floppy --fs-uuid --set=root 8D94-2A4E
|
|
||||||
fi
|
|
||||||
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
|
|
||||||
}
|
}
|
||||||
menuentry 'Ventoy' {
|
menuentry 'Windows Boot Manager' --class windows --class os $menuentry_id_option 'osprober-efi-7C85-2DFB' {
|
||||||
insmod part_gpt
|
insmod part_gpt
|
||||||
insmod fat
|
insmod fat
|
||||||
# set root='hd0,gpt4'
|
search --no-floppy --fs-uuid --set=root 7C85-2DFB
|
||||||
# if [ x$feature_platform_search_hint = xy ]; then
|
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
|
||||||
# search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 BDAD-470D
|
|
||||||
# else
|
|
||||||
# search --no-floppy --fs-uuid --set=root BDAD-470D
|
|
||||||
# fi
|
|
||||||
search --no-floppy --fs-uuid --set=root BDAD-470D
|
|
||||||
chainloader /EFI/BOOT/BOOTX64.EFI
|
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
@ -247,6 +234,8 @@ in
|
||||||
programs.wireshark.enable = true;
|
programs.wireshark.enable = true;
|
||||||
programs.wireshark.package = pkgs.wireshark;
|
programs.wireshark.package = pkgs.wireshark;
|
||||||
|
|
||||||
|
programs.ladybird.enable = true;
|
||||||
|
|
||||||
# fish
|
# fish
|
||||||
programs.fish = {
|
programs.fish = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -321,6 +310,10 @@ in
|
||||||
#media-session.enable = true;
|
#media-session.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.thinkfan = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
# Enable touchpad support (enabled default in most desktopManager).
|
# Enable touchpad support (enabled default in most desktopManager).
|
||||||
services.libinput.enable = true;
|
services.libinput.enable = true;
|
||||||
|
|
@ -354,8 +347,13 @@ in
|
||||||
# };
|
# };
|
||||||
};
|
};
|
||||||
|
|
||||||
# OnlyKey
|
# Hardware keys
|
||||||
hardware.onlykey.enable = true;
|
hardware.onlykey.enable = true;
|
||||||
|
hardware.nitrokey.enable = true;
|
||||||
|
services.pcscd = {
|
||||||
|
enable = true;
|
||||||
|
plugins = [ pkgs.ccid ];
|
||||||
|
};
|
||||||
|
|
||||||
# List packages installed in system profile. To search, run:
|
# List packages installed in system profile. To search, run:
|
||||||
# $ nix search wget
|
# $ nix search wget
|
||||||
|
|
@ -422,9 +420,9 @@ in
|
||||||
# programs.mtr.enable = true;
|
# programs.mtr.enable = true;
|
||||||
programs.gnupg.agent = {
|
programs.gnupg.agent = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# enableSSHSupport = true;
|
enableSSHSupport = true;
|
||||||
};
|
};
|
||||||
programs.ssh.startAgent = true;
|
programs.ssh.startAgent = false;
|
||||||
|
|
||||||
zramSwap = {
|
zramSwap = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -463,8 +461,6 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.logind.lidSwitchExternalPower = "lock";
|
|
||||||
|
|
||||||
hardware.bluetooth.enable = true;
|
hardware.bluetooth.enable = true;
|
||||||
hardware.bluetooth.powerOnBoot = true;
|
hardware.bluetooth.powerOnBoot = true;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,10 +13,11 @@ in
|
||||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "ahci" "nvme" "usbhid" "uas" "usb_storage" ];
|
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "ahci" "nvme" "usbhid" "uas" "usb_storage" "rtsx_pci_sdmmc" ];
|
||||||
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
||||||
boot.kernelModules = [ "kvm-intel" ];
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.kernelParams = [ "i915.enable_psr=0" ];
|
||||||
|
boot.extraModulePackages = with config.boot.kernelPackages; [ acpi_call ];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" =
|
||||||
{ device = root;
|
{ device = root;
|
||||||
|
|
@ -43,9 +44,8 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" =
|
fileSystems."/boot" =
|
||||||
{ device = "/dev/disk/by-uuid/E095-34D8";
|
{ device = "/dev/disk/by-uuid/7C85-2DFB";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = [ "noauto" ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices =
|
swapDevices =
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,15 @@
|
||||||
{
|
{
|
||||||
systemd.mounts = [
|
environment.etc.crypttab = {
|
||||||
{
|
mode = "0600";
|
||||||
where = "/mounts/my_data";
|
text = ''
|
||||||
what = "/dev/disk/by-label/My_Data";
|
shared PARTUUID=7572b70e-36d1-41a8-b425-540b96092ff6 /dev/null tcrypt,tcrypt-veracrypt,tcrypt-keyfile=/root/shared_keyfile
|
||||||
type = "ntfs3";
|
'';
|
||||||
options = "defaults,exec,noauto,prealloc,uid=1000,gid=100";
|
};
|
||||||
}
|
|
||||||
{
|
fileSystems."/mounts/shared" =
|
||||||
where = "/mounts/windows";
|
{ device = "/dev/mapper/shared";
|
||||||
what = "/dev/disk/by-label/WinPart";
|
fsType = "ntfs3";
|
||||||
type = "ntfs3";
|
options = [ "defaults,exec,nosuid,nodev,prealloc,uid=1000,gid=100" ];
|
||||||
options = "defaults,exec,noauto,prealloc,uid=1000,gid=100";
|
};
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue