This commit is contained in:
mjallen18
2025-08-20 18:19:20 -05:00
parent dc382dcfcc
commit 68f732ec4b
31 changed files with 351 additions and 463 deletions

View File

@@ -51,17 +51,6 @@ let
];
in
{
# nix = {
# settings = {
# substituters = [
# "https://cache.mjallen.dev"
# ];
# trusted-public-keys = [
# "cache.mjallen.dev-1:IzFmKCd8/gggI6lcCXsW65qQwiCLGFFN9t9s2iw7Lvc="
# ];
# };
# };
chaotic.mesa-git.enable = false;
# Environment configuration

View File

@@ -27,7 +27,8 @@ in
fsType = "bcachefs";
options = [
"noatime"
] ++ defaultLocalOptions;
]
++ defaultLocalOptions;
};
# Network shares

View File

@@ -32,7 +32,8 @@ in
options = [
"subvol=nix"
"noatime"
] ++ defeaultBtrfsOptions;
]
++ defeaultBtrfsOptions;
};
fileSystems."/etc" = {
@@ -41,7 +42,8 @@ in
options = [
"subvol=etc"
"noatime"
] ++ defeaultBtrfsOptions;
]
++ defeaultBtrfsOptions;
};
fileSystems."/root" = {
@@ -50,7 +52,8 @@ in
options = [
"subvol=root"
"noatime"
] ++ defeaultBtrfsOptions;
]
++ defeaultBtrfsOptions;
};
fileSystems."/var/log" = {
@@ -59,7 +62,8 @@ in
options = [
"subvol=log"
"noatime"
] ++ defeaultBtrfsOptions;
]
++ defeaultBtrfsOptions;
};
fileSystems."/home" = {
@@ -67,7 +71,8 @@ in
fsType = "btrfs";
options = [
"subvol=home"
] ++ defeaultBtrfsOptions;
]
++ defeaultBtrfsOptions;
};
fileSystems."/boot" = {

View File

@@ -8,4 +8,4 @@
environment.variables = {
LSFG_DLL_PATH = "/media/matt/data/steam/steamapps/common/Lossless Scaling/Lossless.dll";
};
}
}

View File

@@ -52,7 +52,7 @@ in
clevis = {
enable = true;
devices = {
# "/dev/sde:/dev/sdf:/dev/sdh:/dev/sdi:/dev/sdj".secretFile = "../../../pool.jwe";
# "/dev/sde:/dev/sdf:/dev/sdh:/dev/sdi:/dev/sdj".secretFile = "../../../pool.jwe";
};
};
};

View File

@@ -1,4 +1,3 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
@@ -19,7 +18,6 @@
./apps.nix
./grafana.nix
./networking.nix
./nixpkgs.nix
./ups.nix
./users.nix
./samba.nix
@@ -191,20 +189,4 @@
optimise.automatic = lib.mkDefault true;
};
# Nixpkgs configuration
nixpkgs = {
config = {
allowUnfree = lib.mkForce true;
allowUnsupportedSystem = true;
permittedInsecurePackages = [
# ...
];
};
};
nixpkgs.config.allowUnfreePredicate =
pkg:
builtins.elem (lib.getName pkg) [
"vscode-extension-github-copilot"
];
}

View File

@@ -1,11 +1,8 @@
{ ... }:
let
defaultOptions = [ "compress=zstd" ];
in
{
fileSystems."/mnt" = {
fileSystems."/media/nas/main" = {
label = "nas_pool";
# device = "/dev/sde:/dev/sdf:/dev/sdh:/dev/sdi:/dev/:sdj";
# device = "/dev/sde:/dev/sdf:/dev/sdh:/dev/sdi:/dev/sdj:/dev/nmve0n1:/dev/nvme1n1";
fsType = "bcachefs";
mountPoint = "/media/nas/main";
};

View File

@@ -1,25 +0,0 @@
{ ... }:
{
# Configure nixpkgs
nixpkgs = {
config = {
# Enable non free
allowUnfree = true;
# enable cuda support
cudaSupport = true;
allowUnfreePredicate =
p:
builtins.all (
license:
license.free
|| builtins.elem license.shortName [
"CUDA EULA"
"cuDNN EULA"
"cuTENSOR EULA"
"NVidia OptiX EULA"
]
) (if builtins.isList p.meta.license then p.meta.license else [ p.meta.license ]);
};
};
}

View File

@@ -45,15 +45,4 @@
optimise.automatic = lib.mkDefault true;
};
# Nixpkgs configuration
nixpkgs = {
config = {
allowUnfree = lib.mkForce true;
allowUnsupportedSystem = true;
permittedInsecurePackages = [
# ...
];
};
};
}

View File

@@ -60,9 +60,5 @@ in
# Further reduce systemd output
systemd = {
services.systemd-udev-settle.enable = false;
extraConfig = ''
ShowStatus=no
DefaultTimeoutStartSec=15s
'';
};
}

View File

@@ -9,8 +9,6 @@
...
}:
{
nixpkgs.config.allowUnfree = lib.mkForce true;
# Define a user account. Don't forget to set a password with passwd.
users.users = {
deck = {

View File

@@ -19,8 +19,6 @@
./sops.nix
];
nixpkgs.config.allowUnfree = true;
${namespace} = {
hardware.disko.enable = true;
bootloader.lanzaboote.enable = true;