lowkey kirking it

This commit is contained in:
TheCrazyInsanity
2025-12-16 12:55:40 -05:00
parent fd2389fed1
commit 1f0a61f56e
5 changed files with 140 additions and 94 deletions

16
flake.lock generated
View File

@@ -21,6 +21,21 @@
"type": "github" "type": "github"
} }
}, },
"impermanence": {
"locked": {
"lastModified": 1737831083,
"narHash": "sha256-LJggUHbpyeDvNagTUrdhe/pRVp4pnS6wVKALS782gRI=",
"owner": "nix-community",
"repo": "impermanence",
"rev": "4b3e914cdf97a5b536a889e939fb2fd2b043a170",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "impermanence",
"type": "github"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1764950072, "lastModified": 1764950072,
@@ -40,6 +55,7 @@
"root": { "root": {
"inputs": { "inputs": {
"home-manager": "home-manager", "home-manager": "home-manager",
"impermanence": "impermanence",
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
} }
} }

View File

@@ -12,6 +12,7 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
impermanence.url = "github:nix-community/impermanence"; impermanence.url = "github:nix-community/impermanence";
# nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=v0.6.0";
}; };
outputs = outputs =
@@ -20,6 +21,7 @@
nixpkgs, nixpkgs,
home-manager, home-manager,
impermanence, impermanence,
# nix-flatpak,
}@inputs: }@inputs:
let let
inherit (self) outputs; inherit (self) outputs;

View File

@@ -1,16 +1,23 @@
# This is for global config I DEFINITELY want on all machines, this should only include basic utilities and be relatively small. # This is for global config I DEFINITELY want on all machines, this should only include basic utilities and be relatively small.
# There is no order for where things are in this, it's a little messy. # There is no order for where things are in this, it's a little messy.
{pkgs, ...}: { pkgs, nix-flatpak, ... }:
{ {
imports = [
# nix-flatpak.nixosModules.nix-flatpak
];
# Lix # Lix
nixpkgs.overlays = [ (final: prev: { nixpkgs.overlays = [
(final: prev: {
inherit (prev.lixPackageSets.stable) inherit (prev.lixPackageSets.stable)
nixpkgs-review nixpkgs-review
nix-eval-jobs nix-eval-jobs
nix-fast-build nix-fast-build
colmena; colmena
}) ]; ;
})
];
nix.package = pkgs.lixPackageSets.stable.lix; nix.package = pkgs.lixPackageSets.stable.lix;
# 🇺🇸 # 🇺🇸
@@ -55,10 +62,27 @@
users.users.laythe = { users.users.laythe = {
isNormalUser = true; isNormalUser = true;
description = "laythe"; description = "laythe";
extraGroups = [ "networkmanager" "wheel" "docker" "adbusers" "jackaudio" "podman" ]; extraGroups = [
"networkmanager"
"wheel"
"docker"
"adbusers"
"jackaudio"
"podman"
];
#To make podman work #To make podman work
subUidRanges = [{ startUid = 100000; count = 65536; }]; subUidRanges = [
subGidRanges = [{ startGid = 100000; count = 65536; }]; {
startUid = 100000;
count = 65536;
}
];
subGidRanges = [
{
startGid = 100000;
count = 65536;
}
];
}; };
programs.appimage = { programs.appimage = {
@@ -126,5 +150,8 @@
package = pkgs.usbmuxd2; package = pkgs.usbmuxd2;
}; };
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [
"nix-command"
"flakes"
];
} }

View File

@@ -1,10 +1,9 @@
{lib, ...}: { lib, ... }:
{ {
boot.initrd.postResumeCommands = lib.mkAfter '' boot.initrd.postResumeCommands = lib.mkAfter ''
rm -rf /bin /etc /lib64 /srv /sys /tmp /usr /var rm -rf /bin /etc /lib64 /srv /sys /tmp /usr /var
'' '';
# impermanence
{
environment.persistence."/persistent" = { environment.persistence."/persistent" = {
enable = true; # NB: Defaults to true, not needed enable = true; # NB: Defaults to true, not needed
hideMounts = true; hideMounts = true;
@@ -14,6 +13,8 @@
"/var/lib/nixos" "/var/lib/nixos"
"/var/lib/systemd/coredump" "/var/lib/systemd/coredump"
"/etc/NetworkManager/system-connections" "/etc/NetworkManager/system-connections"
"/etc/nixos"
"/var/lib/flatpak"
{ {
directory = "/var/lib/colord"; directory = "/var/lib/colord";
user = "colord"; user = "colord";
@@ -37,14 +38,14 @@
"Pictures" "Pictures"
"Documents" "Documents"
"Videos" "Videos"
"VirtualBox VMs" "nixos-configv3"
{ {
directory = ".local/share/Steam"; directory = ".local/share/Steam";
mode = "0777" mode = "0777";
} }
{ {
directory = ".local/share/flatpak"; directory = ".local/share/flatpak";
mode = "0700" mode = "0700";
} }
{ {
directory = ".gnupg"; directory = ".gnupg";
@@ -69,5 +70,4 @@
]; ];
}; };
}; };
}
} }

View File

@@ -2,10 +2,14 @@
# your system. Help is available in the configuration.nix(5) man page, on # your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`). # https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{ config, lib, pkgs, ... }:
{ {
imports = config,
[ lib,
pkgs,
...
}:
{
imports = [
./hardware-configuration.nix ./hardware-configuration.nix
../../global/default.nix ../../global/default.nix
# ../../modules/communication/default.nix # ../../modules/communication/default.nix
@@ -16,6 +20,7 @@
../../modules/kde/default.nix ../../modules/kde/default.nix
../../modules/virtualization/default.nix ../../modules/virtualization/default.nix
# ../../modules/vr/default.nix # ../../modules/vr/default.nix
../../global/eraseyourdarlings.nix
]; ];
# Use the systemd-boot EFI boot loader. # Use the systemd-boot EFI boot loader.
@@ -51,9 +56,6 @@
# services.xserver.enable = true; # On anything else modern this should be false. # services.xserver.enable = true; # On anything else modern this should be false.
# Configure keymap in X11 # Configure keymap in X11
# services.xserver.xkb.layout = "us"; # services.xserver.xkb.layout = "us";
# services.xserver.xkb.options = "eurosign:e,caps:escape"; # services.xserver.xkb.options = "eurosign:e,caps:escape";
@@ -134,4 +136,3 @@
system.stateVersion = "25.11"; # Did you read the comment? system.stateVersion = "25.11"; # Did you read the comment?
} }