Upgrade to nixfmt-rfc-style

This commit is contained in:
2024-09-03 11:38:50 +02:00
parent 0565c43ef9
commit 42b8f67be8
4 changed files with 72 additions and 20 deletions

View File

@@ -1,4 +1,10 @@
{ config, lib, pkgs, inputs, ... }:
{
config,
lib,
pkgs,
inputs,
...
}:
with pkgs;
@@ -6,9 +12,11 @@ with pkgs;
# Kernel configuration
boot = {
kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
kernelParams =
[ "zfs.zfs_arc_max=8589934592" "zfs.zfs_arc_min=1073741824" ];
blacklistedKernelModules = [ "btusb" "bluetooth" ];
kernelParams = [
"zfs.zfs_arc_max=8589934592"
"zfs.zfs_arc_min=1073741824"
];
supportedFilesystems = [ "zfs" ];
zfs = {
requestEncryptionCredentials = true;
@@ -38,7 +46,10 @@ with pkgs;
nix = {
settings = {
auto-optimise-store = true;
trusted-users = [ "root" "coolneng" ];
trusted-users = [
"root"
"coolneng"
];
};
gc = {
automatic = true;
@@ -76,7 +87,12 @@ with pkgs;
users.users.coolneng = {
isNormalUser = true;
home = "/home/coolneng";
extraGroups = [ "wheel" "video" "audio" "lp" ];
extraGroups = [
"wheel"
"video"
"audio"
"lp"
];
shell = fish;
};
@@ -97,15 +113,25 @@ with pkgs;
};
# Use same version of nixpkgs for nix-shell
nix.nixPath = let path = toString ./.;
in [ "nixpkgs=${inputs.nixpkgs}" "nixos-config=${path}/configuration.nix" ];
nix.nixPath =
let
path = toString ./.;
in
[
"nixpkgs=${inputs.nixpkgs}"
"nixos-config=${path}/configuration.nix"
];
# Auto-upgrade the system
system.autoUpgrade = {
enable = true;
dates = "22:30";
flake = "/home/coolneng/Projects/panacea";
flags = [ "--update-input" "nixpkgs" "--commit-lock-file" ];
flags = [
"--update-input"
"nixpkgs"
"--commit-lock-file"
];
};
# Add required dependencies to the auto-upgrade service