Move and rename some stuff whatever
This commit is contained in:
parent
a0cc623c4b
commit
7c5ff0253e
38 changed files with 53 additions and 127 deletions
|
@ -1,6 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
users.groups.admin = {
|
||||
gid = 515;
|
||||
};
|
||||
}
|
|
@ -1,7 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./admin
|
||||
./nfsShare
|
||||
];
|
||||
imports = [ ./nfsShare ];
|
||||
}
|
||||
|
|
|
@ -8,8 +8,5 @@
|
|||
home-manager.nixosModules.home-manager
|
||||
];
|
||||
|
||||
users = {
|
||||
mutableUsers = false;
|
||||
allowNoPasswordLogin = true;
|
||||
};
|
||||
users.mutableUsers = false;
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJahAoF74BY6GCTsFkt1ADKaraFgJJozW1Y1aBTLK0j9 Pixel9"
|
||||
];
|
||||
extraGroups = [
|
||||
"admin"
|
||||
"wheel"
|
||||
"audio"
|
||||
"video"
|
||||
"input"
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
};
|
||||
|
||||
systemd.tmpfiles.rules = [ "f /var/lib/systemd/linger/jimbo" ];
|
||||
|
||||
environment.persistence."/persist".directories = [ "/var/lib/bluetooth" ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Enable Lanzaboote and force disable Systemd-boot";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -7,8 +7,6 @@
|
|||
./gaming
|
||||
./git
|
||||
./home-manager
|
||||
./nh
|
||||
./security
|
||||
./shells
|
||||
];
|
||||
}
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
programs.gnupg.agent = {
|
||||
enable = true;
|
||||
enableSSHSupport = true;
|
||||
};
|
||||
|
||||
programs.gnupg.agent.enable = true;
|
||||
environment.systemPackages = with pkgs; [ git-crypt ];
|
||||
}
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
programs.nh = {
|
||||
enable = true;
|
||||
clean.enable = true;
|
||||
flake = "/etc/nixos";
|
||||
};
|
||||
}
|
|
@ -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"
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
|
@ -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"
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
|
@ -33,7 +33,7 @@
|
|||
"9" = "f9";
|
||||
"0" = "f10";
|
||||
"-" = "f11";
|
||||
#"=" = "f12";
|
||||
# ?? "=" = "f12";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ ... }:
|
||||
{ lib, ... }:
|
||||
{
|
||||
services.tlp.enable = true;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ ... }:
|
||||
{
|
||||
# Enable this when 24.11 drops
|
||||
#services.userborn.enable = true;
|
||||
services.userborn.enable = true;
|
||||
}
|
||||
|
|
|
@ -2,9 +2,10 @@
|
|||
{
|
||||
imports = [
|
||||
./documentation
|
||||
./fonts
|
||||
./font
|
||||
./minimal
|
||||
./nix
|
||||
./security
|
||||
./timezone
|
||||
];
|
||||
}
|
||||
|
|
4
modules/system/settings/font/default.nix
Normal file
4
modules/system/settings/font/default.nix
Normal file
|
@ -0,0 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
console.font = "${pkgs.terminus_font}/share/consolefonts/ter-u22n.psf.gz";
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
console = {
|
||||
font = "${pkgs.terminus_font}/share/consolefonts/ter-u22n.psf.gz";
|
||||
packages = with pkgs; [ terminus_font ];
|
||||
};
|
||||
}
|
|
@ -2,6 +2,7 @@
|
|||
{
|
||||
imports = [
|
||||
./autoupgrade
|
||||
./gc
|
||||
];
|
||||
|
||||
nix.settings = {
|
||||
|
|
8
modules/system/settings/nix/gc/default.nix
Normal file
8
modules/system/settings/nix/gc/default.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{ ... }:
|
||||
{
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 1w";
|
||||
};
|
||||
}
|
16
modules/system/settings/security/privilege/default.nix
Normal file
16
modules/system/settings/security/privilege/default.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ ... }:
|
||||
{
|
||||
security = {
|
||||
sudo.enable = false;
|
||||
doas = {
|
||||
enable = true;
|
||||
extraRules = [
|
||||
{ # Give wheel root access
|
||||
groups = [ "wheel" ];
|
||||
keepEnv = true;
|
||||
persist = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue