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

@ -37,7 +37,7 @@
"/home/jimbo/JimboNFS" = {
device = "${config.ips.server}:/export/JimboNFS";
fsType = "nfs4";
options = [ "x-systemd.automount" "noauto" ];
options = [ "x-systemd.automount" "noauto" "soft" "_netdev" ];
};
};
}

View file

@ -1,16 +1,8 @@
{ pkgs, ... }: {
home.file = {
".face" = {
source = ./assets/pfp.png;
};
".assets/wallpapers" = {
source = ./assets/wallpapers;
};
".assets/lockscreen" = {
source = ./assets/lockscreen;
};
".alsoftrc" = {
text = ''drivers=pulse'';
};
".face".source = ./assets/pfp.png;
".assets/wallpapers".source = ./assets/wallpapers;
".assets/lockscreen".source = ./assets/lockscreen;
".alsoftrc".text = ''drivers=pulse'';
};
}

View file

@ -3,6 +3,5 @@ with lib; {
options.home.desktop.enable = mkOption {
type = types.bool;
default = true;
description = "Enable desktop apps and services, but home-manager";
};
}

View file

@ -207,7 +207,7 @@ in {
"urlclassifier.features.socialtracking.skipURLs" = "*.instagram.com, *.twitter.com, *.twimg.com";
"network.trr.mode" = 3;
"network.trr.uri" = "https://doh.libredns.gr/noads";
"network.trr.uri" = "https://wikimedia-dns.org/dns-query";
"network.cookie.cookieBehavior" = 1;
"network.cookie.sameSite.noneRequiresSecure" = true;
"network.http.referer.XOriginPolicy" = 2;

View file

@ -38,9 +38,9 @@
".config/libfm/libfm.conf".text = ''
[config]
single_click=0
use_trash=0
use_trash=1
confirm_del=1
confirm_trash=0
confirm_trash=1
advanced_mode=1
si_unit=0
force_startup_notify=1

View file

@ -6,6 +6,7 @@
./git
./ncmpcpp
./neovim
./nh
./ranger
./tmux
./zsh

View file

@ -2,7 +2,6 @@
{
programs.nh = {
enable = true;
clean.enable = true;
flake = "/etc/nixos";
};
}

View file

@ -11,14 +11,14 @@
};
shellAliases = {
# NixOS
flakedate = "sudo nix flake update --flake /etc/nixos";
nhs = "sudo nh os switch -R /etc/nixos";
flakedate = "doas nix flake update --flake /etc/nixos";
nhs = "doas nh os switch -R /etc/nixos";
nhu = "flakedate && nhs";
ns = "nix-shell -p";
nixclean = "sudo nix-store --gc; nix-collect-garbage -d";
nixpurge = "sudo nix-collect-garbage --delete-old";
nixoptimize = "sudo nix store optimise";
nixclean = "doas nix-store --gc; nix-collect-garbage -d";
nixpurge = "doas nix-collect-garbage --delete-old";
nixoptimize = "doas nix store optimise";
nixscrub = "nixclean; nixpurge; nixoptimize";
# Shortcuts

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,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;
}
];
};
};
}