Remove pim from wheel on gamepc

Remove some default packages
This commit is contained in:
Pim Kunis 2024-11-14 21:04:17 +01:00
parent 5374402dde
commit 1519cacfc3
3 changed files with 147 additions and 148 deletions

View file

@ -6,6 +6,7 @@
config = { config = {
pim = { pim = {
cinnamon.enable = true; cinnamon.enable = true;
inWheel = false;
}; };
facter.reportPath = ./facter.json; facter.reportPath = ./facter.json;

View file

@ -1,4 +1,4 @@
{inputs, ...}: { {pkgs, ...}: {
config = { config = {
pim = { pim = {
lanzaboote.enable = true; lanzaboote.enable = true;
@ -13,8 +13,25 @@
services.tailscale.enable = true; services.tailscale.enable = true;
facter.reportPath = ./facter.json; facter.reportPath = ./facter.json;
home-manager.users.pim.imports = [./home.nix]; home-manager.users.pim.imports = [./home.nix];
networking.hostName = "sue"; networking.hostName = "sue";
environment.systemPackages = with pkgs; [
borgbackup
kubectl
nmap
poppler_utils # For pdfunite
silicon
units
];
virtualisation.docker = {
enable = true;
rootless = {
enable = true;
setSocketVariable = true;
};
};
swapDevices = [{device = "/dev/disk/by-uuid/96a43c35-0174-4e92-81f0-168a5f601f0b";}]; swapDevices = [{device = "/dev/disk/by-uuid/96a43c35-0174-4e92-81f0-168a5f601f0b";}];
fileSystems = { fileSystems = {
"/" = { "/" = {

View file

@ -21,10 +21,17 @@
./ssh.nix ./ssh.nix
]; ];
options.pim.inWheel = lib.mkOption {
type = lib.types.bool;
default = true;
};
config = {
time.timeZone = "Europe/Amsterdam"; time.timeZone = "Europe/Amsterdam";
i18n.defaultLocale = "en_US.UTF-8"; i18n.defaultLocale = "en_US.UTF-8";
programs.ssh.startAgent = true; programs.ssh.startAgent = true;
systemd.services.NetworkManager-wait-online.enable = lib.mkForce false; systemd.services.NetworkManager-wait-online.enable = lib.mkForce false;
hardware.pulseaudio.enable = false;
services = { services = {
xserver.enable = true; xserver.enable = true;
@ -50,13 +57,14 @@
users.users.pim = { users.users.pim = {
isNormalUser = true; isNormalUser = true;
extraGroups = ["wheel" "docker" "input" "wireshark" "dialout"]; extraGroups =
["docker" "input" "wireshark" "dialout"]
++ lib.optional config.pim.inWheel "wheel";
}; };
environment = { environment = {
systemPackages = with pkgs; [ systemPackages = with pkgs; [
age age
borgbackup
btop btop
btrfs-progs btrfs-progs
curl curl
@ -67,14 +75,9 @@
file file
git git
jq jq
kubectl
nmap
poppler_utils # For pdfunite
ripgrep ripgrep
sbctl sbctl
silicon
tree tree
units
vim vim
wget wget
yq yq
@ -125,14 +128,6 @@
''; '';
}; };
virtualisation.docker = {
enable = true;
rootless = {
enable = true;
setSocketVariable = true;
};
};
nixpkgs = { nixpkgs = {
hostPlatform = lib.mkDefault "x86_64-linux"; hostPlatform = lib.mkDefault "x86_64-linux";
@ -157,25 +152,10 @@
]; ];
}; };
boot = { boot.kernel.sysctl = {
kernelModules = ["kvm-intel" "cdrom"];
extraModulePackages = [];
initrd = {
availableKernelModules = ["sd_mod"];
kernelModules = [];
};
kernel.sysctl = {
"net.core.default_qdisc" = "fq"; "net.core.default_qdisc" = "fq";
"net.ipv4.tcp_congestion_control" = "bbr"; "net.ipv4.tcp_congestion_control" = "bbr";
}; };
};
hardware = {
cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
pulseaudio.enable = false;
};
home-manager = { home-manager = {
useGlobalPkgs = true; useGlobalPkgs = true;
@ -184,4 +164,5 @@
users.pim.imports = ["${self}/home-manager"]; users.pim.imports = ["${self}/home-manager"];
}; };
};
} }