Move and rename some stuff whatever

This commit is contained in:
Jimbo 2024-12-09 23:07:20 -05:00
parent a0cc623c4b
commit 7c5ff0253e
38 changed files with 53 additions and 127 deletions

View file

@ -1,6 +0,0 @@
{ ... }:
{
users.groups.admin = {
gid = 515;
};
}

View file

@ -1,7 +1,4 @@
{ ... }:
{
imports = [
./admin
./nfsShare
];
imports = [ ./nfsShare ];
}

View file

@ -8,8 +8,5 @@
home-manager.nixosModules.home-manager
];
users = {
mutableUsers = false;
allowNoPasswordLogin = true;
};
users.mutableUsers = false;
}

View file

@ -19,7 +19,7 @@
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJahAoF74BY6GCTsFkt1ADKaraFgJJozW1Y1aBTLK0j9 Pixel9"
];
extraGroups = [
"admin"
"wheel"
"audio"
"video"
"input"

View file

@ -10,6 +10,7 @@
};
systemd.tmpfiles.rules = [ "f /var/lib/systemd/linger/jimbo" ];
environment.persistence."/persist".directories = [ "/var/lib/bluetooth" ];
};
}

View file

@ -6,7 +6,6 @@
enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Enable Lanzaboote and force disable Systemd-boot";
};
};

View file

@ -3,7 +3,6 @@
options.system.wireguard.client.enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Enable the wireguard client";
};
config = lib.mkIf config.system.wireguard.client.enable {

View file

@ -3,7 +3,6 @@
options.system.wireguard.server.enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Enable the wireguard server";
};
config = lib.mkIf config.system.wireguard.server.enable {

View file

@ -3,7 +3,6 @@
options.system.wireless.enable = lib.mkOption {
type = lib.types.bool;
default = true;
description = "Enable Wifi with iwd";
};
config = lib.mkIf config.system.wireless.enable {

View file

@ -3,7 +3,6 @@
options.system.video.nouveau.enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Enable the open-source Nouveau driver";
};
config = lib.mkIf config.system.video.nouveau.enable {

View file

@ -3,7 +3,6 @@
options.system.video.nvidia.enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Enable the proprietary Nvidia stack";
};
config = lib.mkIf config.system.video.nvidia.enable {

View file

@ -4,12 +4,10 @@ with lib; {
desktop.enable = mkOption {
type = types.bool;
default = true;
description = "Enable desktop apps and services";
};
server.enable = mkOption {
type = types.bool;
default = false;
description = "Enable server services";
};
};
}

View file

@ -7,8 +7,6 @@
./gaming
./git
./home-manager
./nh
./security
./shells
];
}

View file

@ -1,9 +1,5 @@
{ pkgs, ... }:
{
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
programs.gnupg.agent.enable = true;
environment.systemPackages = with pkgs; [ git-crypt ];
}

View file

@ -1,8 +0,0 @@
{ ... }:
{
programs.nh = {
enable = true;
clean.enable = true;
flake = "/etc/nixos";
};
}

View file

@ -1,31 +0,0 @@
{ ... }:
{
security.sudo-rs = {
enable = true;
extraRules = [
{ # Admin gets certain commands
groups = [ "admin" ];
commands = [
"/run/current-system/sw/bin/nix"
"/run/current-system/sw/bin/nh"
"/run/current-system/sw/bin/nixos-rebuild"
"/run/current-system/sw/bin/nixos-enter"
"/run/current-system/sw/bin/nix-collect-garbage"
"/run/current-system/sw/bin/nix-store"
"/run/current-system/sw/bin/systemctl"
"/run/current-system/sw/bin/pkill"
"/run/current-system/sw/bin/dd"
"/run/current-system/sw/bin/eject"
"/run/current-system/sw/bin/vgchange"
"/run/current-system/sw/bin/cp"
"/run/current-system/sw/bin/ls"
"/run/current-system/sw/bin/cat"
"/run/current-system/sw/bin/mount"
];
}
];
};
}

View file

@ -1,31 +0,0 @@
{ ... }:
{
security.sudo-rs = {
enable = true;
extraRules = [
{ # Admin gets certain commands
groups = [ "admin" ];
commands = [
"/run/current-system/sw/bin/nix"
"/run/current-system/sw/bin/nh"
"/run/current-system/sw/bin/nixos-rebuild"
"/run/current-system/sw/bin/nixos-enter"
"/run/current-system/sw/bin/nix-collect-garbage"
"/run/current-system/sw/bin/nix-store"
"/run/current-system/sw/bin/systemctl"
"/run/current-system/sw/bin/pkill"
"/run/current-system/sw/bin/dd"
"/run/current-system/sw/bin/eject"
"/run/current-system/sw/bin/vgchange"
"/run/current-system/sw/bin/cp"
"/run/current-system/sw/bin/ls"
"/run/current-system/sw/bin/cat"
"/run/current-system/sw/bin/mount"
];
}
];
};
}

View file

@ -33,7 +33,7 @@
"9" = "f9";
"0" = "f10";
"-" = "f11";
#"=" = "f12";
# ?? "=" = "f12";
};
};
};

View file

@ -1,4 +1,4 @@
{ ... }:
{ lib, ... }:
{
services.tlp.enable = true;
}

View file

@ -1,5 +1,4 @@
{ ... }:
{
# Enable this when 24.11 drops
#services.userborn.enable = true;
services.userborn.enable = true;
}

View file

@ -2,9 +2,10 @@
{
imports = [
./documentation
./fonts
./font
./minimal
./nix
./security
./timezone
];
}

View file

@ -0,0 +1,4 @@
{ pkgs, ... }:
{
console.font = "${pkgs.terminus_font}/share/consolefonts/ter-u22n.psf.gz";
}

View file

@ -1,7 +0,0 @@
{ pkgs, ... }:
{
console = {
font = "${pkgs.terminus_font}/share/consolefonts/ter-u22n.psf.gz";
packages = with pkgs; [ terminus_font ];
};
}

View file

@ -2,6 +2,7 @@
{
imports = [
./autoupgrade
./gc
];
nix.settings = {

View file

@ -0,0 +1,8 @@
{ ... }:
{
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 1w";
};
}

View file

@ -0,0 +1,16 @@
{ ... }:
{
security = {
sudo.enable = false;
doas = {
enable = true;
extraRules = [
{ # Give wheel root access
groups = [ "wheel" ];
keepEnv = true;
persist = true;
}
];
};
};
}