failed to (create current|crawl system) director(y|ies)

This commit is contained in:
mtgmonkey
2025-12-29 11:53:52 +01:00
parent 12438a9c8d
commit 29f22c7c24
4 changed files with 46 additions and 43 deletions

View File

@@ -1,11 +1,7 @@
{lib, ...}: { {lib, ...}: {
boot.loader = { boot.loader = {
efi.canTouchEfiVariables = true; efi.canTouchEfiVariables = true;
limine = { systemd-boot.enable = true;
enable = true;
efiSupport = true;
};
timeout = lib.mkDefault 2;
}; };
environment.persistence."/persist" = { environment.persistence."/persist" = {
enable = true; enable = true;
@@ -17,8 +13,14 @@
"/var/lib/systemd/coredump" "/var/lib/systemd/coredump"
"/etc/NetworkManager/system-connections" "/etc/NetworkManager/system-connections"
]; ];
files = [
"/etc/machine-id"
"/etc/shadow"
"/etc/shadow-"
];
users."mtgmonkey" = { users."mtgmonkey" = {
directories = [ directories = [
"conf"
"Downloads" "Downloads"
".backups" ".backups"
".ssh" ".ssh"
@@ -66,6 +68,7 @@
users.users."mtgmonkey" = { users.users."mtgmonkey" = {
isNormalUser = true; isNormalUser = true;
description = "mtgmonkey"; description = "mtgmonkey";
initialPassword = "password";
extraGroups = [ extraGroups = [
"networkmanager" "networkmanager"
"wheel" "wheel"

View File

@@ -1,47 +1,47 @@
# Do not modify this file! It was generated by nixos-generate-config # Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes # and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead. # to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{ {
imports = config,
[ (modulesPath + "/installer/scan/not-detected.nix") lib,
]; modulesPath,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usbhid" "sdhci_pci" ]; boot.initrd.availableKernelModules = ["xhci_pci" "nvme" "usb_storage" "usbhid" "sd_mod" "sdhci_pci"];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [];
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = ["kvm-intel"];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [];
fileSystems."/" = fileSystems."/" = {
{ device = "/dev/disk/by-uuid/6546ea32-a94f-4d2d-8949-fe5f7009bd22"; device = "none";
fsType = "ext4"; fsType = "tmpfs";
}; options = ["defaults" "size=50%" "mode=755"];
};
fileSystems."/nix" = fileSystems."/boot" = {
{ device = "/dev/disk/by-uuid/038cd71d-c0c6-4e3b-950c-2b239d67670b"; device = "/dev/disk/by-uuid/107D-CA99";
fsType = "ext4"; fsType = "vfat";
}; options = ["fmask=0077" "dmask=0077"];
};
fileSystems."/boot" = fileSystems."/nix" = {
{ device = "/dev/disk/by-uuid/5AEC-83B7"; device = "/dev/disk/by-uuid/1a8ff2e3-8bed-4acb-9f03-45583f1d651d";
fsType = "vfat"; fsType = "btrfs";
options = [ "fmask=0077" "dmask=0077" ]; };
};
fileSystems."/home" = fileSystems."/persist" = {
{ device = "/dev/disk/by-uuid/bc77f555-144f-4c8c-86cb-e2785783c49a"; device = "/dev/disk/by-label/NIXPERSIST";
fsType = "ext4"; neededForBoot = true;
}; fsType = "btrfs";
};
fileSystems."/home/mtgmonkey/tmp" = swapDevices = [
{ device = "/dev/mmcblk0p1"; {device = "/dev/disk/by-uuid/18c2ef9b-1568-41e4-b67a-96155822ae02";}
fsType = "ext4"; ];
};
swapDevices =
[ { device = "/dev/disk/by-uuid/394f46fe-65c3-4e35-acf8-44d81ed5a674"; }
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;

View File

@@ -12,7 +12,7 @@ in {
wayland.windowManager.sway.enable = true; wayland.windowManager.sway.enable = true;
home = { home = {
username = "mtgmonkey"; username = "mtgmonkey";
homeDirectory = "/home/mtgmonkey"; homeDirectory = "/home/${config.home.username}";
stateVersion = "26.05"; stateVersion = "26.05";
packages = [ packages = [
pkgs.acpi pkgs.acpi
@@ -41,8 +41,8 @@ in {
enable = true; enable = true;
shellAliases = { shellAliases = {
neofetch = "fastfetch"; neofetch = "fastfetch";
ls = "lsd"; ls = lib.mkForce "lsd";
ll = "lsd -l"; ll = lib.mkForce "lsd -l";
l = "lsd -la"; l = "lsd -la";
cd = "z"; cd = "z";
gg = "git log --oneline --abbrev-commit --all --graph --decorate --color"; gg = "git log --oneline --abbrev-commit --all --graph --decorate --color";

View File

@@ -9,7 +9,7 @@ set $screenshot grim -g "$(slurp)"
floating_modifier $mod normal floating_modifier $mod normal
workspace_layout stacking workspace_layout stacking
output * bg /home/mtgmonkey/.dotfiles/home/stylix/nix-wallpaper-gear.png fill output * bg /home/mtgmonkey/conf/home/nix-wallpaper-gear.png fill
# launch programs # launch programs
bindsym $mod+Shift+Return exec $term bindsym $mod+Shift+Return exec $term