nixos: remove forEachUser helper

This commit is contained in:
2026-02-03 20:30:39 -08:00
parent 8620cc6287
commit ebfbca4827
28 changed files with 421 additions and 289 deletions

View File

@@ -1,4 +1,4 @@
{ lib, pkgs, inputs, forEachUser, ... }:
{ lib, pkgs, inputs, ... }:
{
imports = [
@@ -71,9 +71,11 @@
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
home-manager.users = forEachUser {
home.stateVersion = "23.05";
};
home-manager.sharedModules = [
{
home.stateVersion = "23.05";
}
];
system.stateVersion = "23.05";
}

View File

@@ -1,4 +1,4 @@
{ lib, pkgs, config, inputs, forEachUser, ... }:
{ lib, pkgs, config, inputs, ... }:
{
imports = [
../configuration.nix
@@ -18,9 +18,11 @@
wsl.defaultUser = "ben";
system.stateVersion = "22.05";
home-manager.users = forEachUser {
home.stateVersion = "22.05";
};
home-manager.sharedModules = [
{
home.stateVersion = "22.05";
}
];
users.users.ben = {
extraGroups = [

View File

@@ -1,4 +1,4 @@
{ pkgs, lib, forEachUser, config, ... }:
{ pkgs, lib, config, ... }:
let biskcomp-nginx-hostnames = "192.168.1.44 railbird.ai 1896Folsom.duckdns.org biskcomp.local 0.0.0.0 67.162.131.71";
in
{
@@ -157,7 +157,9 @@ in
networking.hostName = "biskcomp";
system.stateVersion = "23.11";
home-manager.users = forEachUser {
home.stateVersion = "23.11";
};
home-manager.sharedModules = [
{
home.stateVersion = "23.11";
}
];
}

View File

@@ -1,4 +1,4 @@
{ config, lib, pkgs, forEachUser, ... }:
{ config, lib, pkgs, ... }:
{
imports = [
@@ -53,9 +53,11 @@
networking.hostName = "david-blade";
home-manager.users = forEachUser {
home.stateVersion = "24.05";
};
home-manager.sharedModules = [
{
home.stateVersion = "24.05";
}
];
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
system.stateVersion = "24.05";

View File

@@ -1,4 +1,4 @@
{ lib, pkgs, config, inputs, forEachUser, ... }:
{ lib, pkgs, config, inputs, ... }:
{
imports = [
../configuration.nix
@@ -15,7 +15,9 @@
wsl.defaultUser = "dean";
system.stateVersion = "22.05";
home-manager.users = forEachUser {
home.stateVersion = "22.05";
};
home-manager.sharedModules = [
{
home.stateVersion = "22.05";
}
];
}

View File

@@ -1,4 +1,4 @@
{ lib, pkgs, config, inputs, forEachUser, ... }:
{ lib, pkgs, config, inputs, ... }:
{
imports = [
../configuration.nix
@@ -12,7 +12,9 @@
wsl.defaultUser = "kat";
system.stateVersion = "22.05";
home-manager.users = forEachUser {
home.stateVersion = "22.05";
};
home-manager.sharedModules = [
{
home.stateVersion = "22.05";
}
];
}

View File

@@ -1,4 +1,4 @@
{ config, lib, pkgs, forEachUser, ... }:
{ config, lib, pkgs, ... }:
{
imports = [
@@ -55,7 +55,9 @@
system.stateVersion = "23.05";
home-manager.users = forEachUser {
home.stateVersion = "23.05";
};
home-manager.sharedModules = [
{
home.stateVersion = "23.05";
}
];
}

View File

@@ -1,4 +1,4 @@
{ config, lib, pkgs, forEachUser, ... }:
{ config, lib, pkgs, ... }:
{
imports = [
@@ -106,9 +106,11 @@
{ device = "/dev/disk/by-uuid/598e9aa1-4940-4410-a2fa-3dfd8b7d2c0d"; }
];
home-manager.users = forEachUser {
home.stateVersion = "23.11";
};
home-manager.sharedModules = [
{
home.stateVersion = "23.11";
}
];
networking.hostName = "jimi-hendnix";

View File

@@ -1,4 +1,4 @@
{ config, lib, pkgs, forEachUser, ... }:
{ config, lib, pkgs, ... }:
{
imports = [
@@ -201,7 +201,9 @@
system.stateVersion = "23.05";
home-manager.users = forEachUser {
home.stateVersion = "23.05";
};
home-manager.sharedModules = [
{
home.stateVersion = "23.05";
}
];
}

View File

@@ -1,4 +1,4 @@
{ config, lib, pkgs, inputs, forEachUser, ... }:
{ config, lib, pkgs, inputs, ... }:
{
imports = [
../configuration.nix
@@ -62,9 +62,11 @@
services.xrdp.defaultWindowManager = "startplasma-x11";
services.xrdp.openFirewall = true;
home-manager.users = forEachUser {
home.stateVersion = "23.11";
};
home-manager.sharedModules = [
{
home.stateVersion = "23.11";
}
];
system.stateVersion = "23.11";
}

View File

@@ -1,4 +1,4 @@
{ config, lib, pkgs, forEachUser, inputs, orgAgendaApiContainer ? null, orgAgendaApiImageName ? "org-agenda-api", ... }:
{ config, lib, pkgs, inputs, orgAgendaApiContainer ? null, orgAgendaApiImageName ? "org-agenda-api", ... }:
{
imports = [
../configuration.nix
@@ -86,9 +86,11 @@
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
home-manager.users = forEachUser {
home.stateVersion = "23.11";
};
home-manager.sharedModules = [
{
home.stateVersion = "23.11";
}
];
system.stateVersion = "23.11";
}

View File

@@ -1,4 +1,4 @@
{ lib, pkgs, forEachUser, ... }:
{ lib, pkgs, ... }:
{
imports = [
@@ -93,9 +93,11 @@
# services.xrdp.openFirewall = true;
system.stateVersion = "20.03";
home-manager.users = forEachUser {
home.stateVersion = "21.05";
};
home-manager.sharedModules = [
{
home.stateVersion = "21.05";
}
];
# users.extraUsers.dean.home = "/shared/dean";
}

View File

@@ -1,4 +1,4 @@
{ lib, pkgs, config, inputs, forEachUser, ... }:
{ lib, pkgs, config, inputs, ... }:
{
imports = [
../configuration.nix
@@ -18,7 +18,9 @@
wsl.defaultUser = "imalison";
system.stateVersion = "22.05";
home-manager.users = forEachUser {
home.stateVersion = "22.05";
};
home-manager.sharedModules = [
{
home.stateVersion = "22.05";
}
];
}

View File

@@ -1,4 +1,4 @@
{ lib, pkgs, forEachUser, ... }:
{ lib, pkgs, ... }:
{
imports = [
@@ -83,9 +83,11 @@
# services.xrdp.openFirewall = true;
system.stateVersion = "20.03";
home-manager.users = forEachUser {
home.stateVersion = "21.05";
};
home-manager.sharedModules = [
{
home.stateVersion = "21.05";
}
];
# users.extraUsers.dean.home = "/shared/dean";
}

View File

@@ -1,4 +1,4 @@
{ lib, pkgs, config, inputs, forEachUser, ... }:
{ lib, pkgs, config, inputs, ... }:
{
imports = [
../configuration.nix
@@ -11,9 +11,11 @@
wsl.defaultUser = "imalison";
system.stateVersion = "23.11"; # Did you read the comment?
home-manager.users = forEachUser {
home.stateVersion = "23.11";
};
home-manager.sharedModules = [
{
home.stateVersion = "23.11";
}
];
programs.gnupg = {
agent = {

View File

@@ -1,4 +1,4 @@
{ config, lib, pkgs, inputs, forEachUser, ... }:
{ config, lib, pkgs, inputs, ... }:
{
imports = [
@@ -83,9 +83,11 @@
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
hardware.cpu.intel.updateMicrocode = lib.mkDefault true;
home-manager.users = forEachUser {
home.stateVersion = "23.05";
};
home-manager.sharedModules = [
{
home.stateVersion = "23.05";
}
];
system.stateVersion = "23.05";
}