mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 01:58:12 +09:00
feat(modules): add nix caches module
This commit is contained in:
@@ -15,6 +15,5 @@
|
||||
!overlays/
|
||||
!profiles/
|
||||
!modules/
|
||||
!applications/
|
||||
|
||||
!/flake/
|
||||
|
||||
@@ -21,7 +21,6 @@ let
|
||||
nixosSystem {
|
||||
inherit system;
|
||||
modules = [
|
||||
./${host}/hardware-configuration.nix
|
||||
../profiles/${profile}.nix
|
||||
./${host}/default.nix
|
||||
]
|
||||
|
||||
@@ -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
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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
@@ -1,8 +1,8 @@
|
||||
{ userName, ... }:
|
||||
{
|
||||
userName,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [ ];
|
||||
imports = [
|
||||
../modules/nix/boot.nix
|
||||
../modules/nix/caches.nix
|
||||
];
|
||||
home-manager.users.${userName}.imports = [ ];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user