Move and rename some stuff whatever
This commit is contained in:
parent
a0cc623c4b
commit
7c5ff0253e
|
@ -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" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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'';
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
./git
|
||||
./ncmpcpp
|
||||
./neovim
|
||||
./nh
|
||||
./ranger
|
||||
./tmux
|
||||
./zsh
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
{
|
||||
programs.nh = {
|
||||
enable = true;
|
||||
clean.enable = true;
|
||||
flake = "/etc/nixos";
|
||||
};
|
||||
}
|
|
@ -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
|
||||
|
|
|
@ -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,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…
Reference in a new issue