feat(modules): add nix caches module

This commit is contained in:
2026-05-28 13:25:39 +09:00
parent 796bc7dcb6
commit d881300a5b
6 changed files with 56 additions and 7 deletions
-1
View File
@@ -15,6 +15,5 @@
!overlays/
!profiles/
!modules/
!applications/
!/flake/
-1
View File
@@ -21,7 +21,6 @@ let
nixosSystem {
inherit system;
modules = [
./${host}/hardware-configuration.nix
../profiles/${profile}.nix
./${host}/default.nix
]
+27
View File
@@ -0,0 +1,27 @@
{
lib,
pkgs,
config,
...
}:
with lib;
let
cfg = config.drivers.intel;
in
{
options.drivers.intel = {
enable = mkEnableOption "Enable Intel Graphics Drivers";
};
config = mkIf cfg.enable {
# OpenGL
hardware.graphics = {
extraPackages = with pkgs; [
intel-media-driver
vaapiIntel
vaapiVdpau
libvdpau-va-gl
];
};
};
}
+11
View File
@@ -0,0 +1,11 @@
{ pkgs, ... }:
{
boot.loader = {
systemd-boot.enable = true;
systemd-boot.configurationLimit = 8;
efi.canTouchEfiVariables = true;
};
boot.supportedFilesystems = [ "nfs" ];
boot.kernelPackages = pkgs.linuxPackages_latest;
}
+13
View File
@@ -0,0 +1,13 @@
_: {
nix.settings = {
extra-substituters = [
"https://noctalia.cachix.org"
"https://vicinae.cachix.org"
];
extra-trusted-public-keys = [
"noctalia.cachix.org-1:pCOR47nnMEo5thcxNDtzWpOxNFQsBRglJzxWPp3dkU4="
"vicinae.cachix.org-1:1kDrfienkGHPYbkpNj1mWTr7Fm1+zcenzgTizIcI3oc="
];
};
}
+5 -5
View File
@@ -1,8 +1,8 @@
{ userName, ... }:
{
userName,
...
}:
{
imports = [ ];
imports = [
../modules/nix/boot.nix
../modules/nix/caches.nix
];
home-manager.users.${userName}.imports = [ ];
}