2021-12-27 09:46:15 +00:00
|
|
|
{ tree, config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = with tree; [
|
2021-12-28 22:59:28 +00:00
|
|
|
users.root
|
2021-12-27 09:46:15 +00:00
|
|
|
users.chaoticryptidz
|
|
|
|
profiles.tailscale
|
2022-01-16 11:22:44 +00:00
|
|
|
profiles.dnscrypt
|
|
|
|
profiles.printing
|
|
|
|
profiles.sshd
|
|
|
|
|
2022-01-16 11:37:09 +00:00
|
|
|
# required for dualsense controller
|
|
|
|
profiles.kernels.latest
|
|
|
|
|
2021-12-27 09:46:15 +00:00
|
|
|
profiles.laptop
|
2022-01-16 11:22:44 +00:00
|
|
|
|
2022-01-16 11:46:16 +00:00
|
|
|
#profiles.connectivity.bluetooth
|
|
|
|
profiles.connectivity.network_manager
|
2022-01-17 19:55:34 +00:00
|
|
|
profiles.connectivity.ios
|
2022-01-16 11:46:16 +00:00
|
|
|
|
|
|
|
profiles.sound.pulseaudio
|
|
|
|
|
2022-01-16 11:22:44 +00:00
|
|
|
profiles.gui
|
|
|
|
profiles.gui.environments.sway
|
|
|
|
|
|
|
|
profiles.gaming.steam
|
|
|
|
|
|
|
|
# for sci-hub and whenever websites break
|
|
|
|
profiles.tor
|
2022-01-16 11:37:09 +00:00
|
|
|
|
2022-01-23 11:48:43 +00:00
|
|
|
# Music!
|
|
|
|
hosts.lappy.profiles.mpd
|
|
|
|
|
2022-01-16 11:37:09 +00:00
|
|
|
# For cross compiling and deploying to raspberry
|
|
|
|
profiles.cross.arm64
|
2021-12-27 09:46:15 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
home-manager.users.root = { imports = with tree; [ home.base ]; };
|
|
|
|
home-manager.users.chaoticryptidz = {
|
|
|
|
imports = with tree; [
|
|
|
|
home.base
|
2022-01-03 16:50:22 +00:00
|
|
|
home.dev.all
|
2022-01-10 20:52:18 +00:00
|
|
|
home.reversing
|
2022-01-16 11:22:44 +00:00
|
|
|
|
|
|
|
home.gui
|
|
|
|
home.gui.environments.sway
|
2022-01-16 11:46:32 +00:00
|
|
|
|
2022-01-16 11:22:44 +00:00
|
|
|
home.gaming.emulators.ds
|
2022-01-24 16:10:09 +00:00
|
|
|
#home.gaming.games.minecraft
|
2022-01-16 11:22:44 +00:00
|
|
|
#home.gaming.games.osu
|
2022-01-24 16:10:09 +00:00
|
|
|
#home.gaming.platforms.steam
|
2022-01-16 11:22:44 +00:00
|
|
|
|
|
|
|
#home.bluetooth
|
|
|
|
home.network_manager
|
|
|
|
|
2021-12-27 09:46:15 +00:00
|
|
|
home.apps.vivaldi
|
|
|
|
home.apps.telegram
|
2022-01-03 21:13:15 +00:00
|
|
|
home.apps.quassel
|
2022-01-09 21:30:13 +00:00
|
|
|
home.apps.chromium
|
2022-01-16 11:22:44 +00:00
|
|
|
|
2021-12-27 09:46:15 +00:00
|
|
|
home.programming
|
2022-01-01 19:24:08 +00:00
|
|
|
#home.programming.languages.go
|
2021-12-27 09:46:15 +00:00
|
|
|
home.programming.languages.nix
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2022-01-01 17:28:16 +00:00
|
|
|
services.getty.extraArgs =
|
|
|
|
[ "--skip-login" "--login-options" "chaoticryptidz" ];
|
2022-01-01 15:16:12 +00:00
|
|
|
|
2021-12-29 16:12:15 +00:00
|
|
|
networking.firewall.enable = true;
|
|
|
|
# let vscode, vivaldi, etc work.
|
|
|
|
security.unprivilegedUsernsClone = true;
|
|
|
|
|
2022-01-23 10:30:56 +00:00
|
|
|
virtualisation.virtualbox.host.enable = true;
|
|
|
|
#virtualisation.virtualbox.host.enableExtensionPack = true;
|
|
|
|
users.extraGroups.vboxusers.members = [ "chaoticryptidz" ];
|
|
|
|
|
2021-12-27 09:46:15 +00:00
|
|
|
networking.hostName = "lappy";
|
|
|
|
time.timeZone = "Europe/London";
|
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
|
|
|
|
|
|
|
services.fstrim.enable = true;
|
|
|
|
|
|
|
|
boot = {
|
|
|
|
loader = {
|
|
|
|
systemd-boot.enable = true;
|
|
|
|
efi.canTouchEfiVariables = true;
|
|
|
|
};
|
|
|
|
initrd.availableKernelModules =
|
|
|
|
[ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
|
|
|
kernelModules = [ "kvm-intel" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems = {
|
|
|
|
"/" = {
|
|
|
|
device = "/dev/disk/by-label/nixos";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
|
|
|
"/boot" = {
|
|
|
|
device = "/dev/disk/by-label/nixboot";
|
|
|
|
fsType = "vfat";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
system.stateVersion = "21.11";
|
|
|
|
}
|
|
|
|
|