2021-12-27 09:46:15 +00:00
|
|
|
{ tree, config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = with tree; [
|
2022-01-29 19:55:58 +00:00
|
|
|
./hardware.nix
|
|
|
|
|
2021-12-28 22:59:28 +00:00
|
|
|
users.root
|
2022-01-29 21:44:38 +00:00
|
|
|
users.chaos
|
2021-12-27 09:46:15 +00:00
|
|
|
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-26 23:05:24 +00:00
|
|
|
# Bluetooth
|
|
|
|
profiles.connectivity.bluetooth
|
|
|
|
profiles.sound.pulseaudio.pulse-bluetooth
|
|
|
|
|
2022-01-16 11:46:16 +00:00
|
|
|
profiles.connectivity.network_manager
|
2022-01-17 19:55:34 +00:00
|
|
|
profiles.connectivity.ios
|
2022-01-16 11:46:16 +00:00
|
|
|
|
2022-01-25 12:15:56 +00:00
|
|
|
profiles.sound.pulseaudio.pulse
|
2022-01-16 11:46:16 +00:00
|
|
|
|
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 ]; };
|
2022-01-29 21:44:38 +00:00
|
|
|
home-manager.users.chaos = {
|
2021-12-27 09:46:15 +00:00
|
|
|
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-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 =
|
2022-01-29 21:44:38 +00:00
|
|
|
[ "--skip-login" "--login-options" "chaos" ];
|
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;
|
|
|
|
|
2021-12-27 09:46:15 +00:00
|
|
|
networking.hostName = "lappy";
|
|
|
|
time.timeZone = "Europe/London";
|
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
|
|
|
|
|
|
|
services.fstrim.enable = true;
|
|
|
|
|
|
|
|
system.stateVersion = "21.11";
|
|
|
|
}
|
|
|
|
|