Compare commits

..

4 commits

Author SHA1 Message Date
caandt c650df2204 add swap 2024-11-15 23:37:53 -06:00
caandt b3f2cc50fe hardware stuff 2024-11-14 19:47:24 -06:00
caandt dfb5fd4500 doas rules 2024-11-13 04:16:30 -06:00
caandt 81227fc6f1 fake home 2024-11-13 04:15:36 -06:00
5 changed files with 39 additions and 3 deletions

View file

@ -20,5 +20,20 @@
isNormalUser = true; isNormalUser = true;
}; };
}; };
services.xserver.wacom.enable = true; security.doas.extraRules = [
{
users = ["u2h"];
noPass = true;
cmd = "rmmod";
args = ["wacom"];
}
];
services.xserver.wacom.enable = true;
environment.systemPackages = [
pkgs.nvtopPackages.amd
];
# prevent mouse from waking up suspend
services.udev.extraRules = ''
ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c547", ATTR{power/wakeup}="disabled"
'';
} }

View file

@ -25,9 +25,12 @@
fileSystems."/boot" = { fileSystems."/boot" = {
device = "/dev/disk/by-uuid/1FF4-8F2A"; device = "/dev/disk/by-uuid/1FF4-8F2A";
fsType = "vfat"; fsType = "vfat";
options = ["fmask=0022" "dmask=0022"];
}; };
swapDevices = []; swapDevices = [
{device = "/dev/disk/by-uuid/fb2a814c-00ac-4458-a06a-fb8244ff953a";}
];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's # (the default) this is the recommended approach. When using systemd-networkd it's

View file

@ -6,6 +6,11 @@
groups = ["wheel"]; groups = ["wheel"];
persist = true; persist = true;
} }
{
groups = ["wheel"];
noPass = true;
cmd = "journalctl";
}
]; ];
}; };
security.polkit.enable = true; security.polkit.enable = true;

View file

@ -13,7 +13,7 @@
buildInputs = [pkgs.makeWrapper]; buildInputs = [pkgs.makeWrapper];
postBuild = '' postBuild = ''
wrapProgram $out/bin/firefox \ wrapProgram $out/bin/firefox \
--set HOME "${config.home.homeDirectory}/.local/share" --set HOME "${config.home.homeDirectory}/.local/home"
''; '';
}) })
alacritty alacritty

View file

@ -1,4 +1,8 @@
{pkgs, ...}: { {
config,
pkgs,
...
}: {
xdg.mimeApps.enable = true; xdg.mimeApps.enable = true;
xdg.mimeApps.defaultApplications = let xdg.mimeApps.defaultApplications = let
image = "nsxiv-rifle.desktop"; image = "nsxiv-rifle.desktop";
@ -29,4 +33,13 @@
extraPortals = [pkgs.libsForQt5.xdg-desktop-portal-kde]; extraPortals = [pkgs.libsForQt5.xdg-desktop-portal-kde];
config.common.default = "kde"; config.common.default = "kde";
}; };
home.file = let
mkln = x: config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/${x}";
in {
".local/home/.cache".source = mkln ".cache";
".local/home/.config".source = mkln ".config";
".local/home/.local".source = mkln ".local";
".local/home/Desktop".source = mkln "Desktop";
".local/home/Downloads".source = mkln "Downloads";
};
} }