2023-01-28 22:27:52 +01:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; let
|
2021-09-02 20:55:17 +02:00
|
|
|
psCfg = config.pub-solar;
|
|
|
|
xdg = config.home-manager.users."${psCfg.user.name}".xdg;
|
2023-01-28 22:27:52 +01:00
|
|
|
in {
|
2021-09-02 20:55:17 +02:00
|
|
|
imports = [
|
|
|
|
./configuration.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
config = {
|
2022-08-24 18:45:34 +02:00
|
|
|
pub-solar.paranoia.enable = true;
|
|
|
|
pub-solar.core.hibernation.resumeDevice = "/dev/dm-0";
|
|
|
|
pub-solar.core.hibernation.resumeOffset = 15296512;
|
|
|
|
|
2021-09-02 20:55:17 +02:00
|
|
|
hardware.cpu.intel.updateMicrocode = true;
|
|
|
|
|
2023-01-28 22:27:52 +01:00
|
|
|
networking.firewall.allowedTCPPorts = [5000];
|
2021-09-02 20:55:17 +02:00
|
|
|
|
2022-10-03 03:56:53 +02:00
|
|
|
networking.networkmanager.wifi.backend = mkForce "wpa_supplicant";
|
2022-10-03 02:53:40 +02:00
|
|
|
|
2023-04-21 11:20:23 +02:00
|
|
|
services.printing.drivers = [
|
|
|
|
pkgs.cups-brother-hl3140cw
|
|
|
|
];
|
|
|
|
|
2023-01-28 22:27:52 +01:00
|
|
|
home-manager = with pkgs;
|
|
|
|
pkgs.lib.setAttrByPath ["users" psCfg.user.name] {
|
|
|
|
xdg.configFile = mkIf psCfg.sway.enable {
|
|
|
|
"sway/config.d/10-screens.conf".source = ./.config/sway/config.d/screens.conf;
|
|
|
|
"sway/config.d/10-autostart.conf".source = ./.config/sway/config.d/autostart.conf;
|
|
|
|
"sway/config.d/10-input-defaults.conf".source = ./.config/sway/config.d/input-defaults.conf;
|
|
|
|
"sway/config.d/10-custom-keybindings.conf".source = ./.config/sway/config.d/custom-keybindings.conf;
|
|
|
|
};
|
2022-10-03 15:51:38 +02:00
|
|
|
|
2023-01-28 22:27:52 +01:00
|
|
|
home.packages = [
|
|
|
|
inkscape
|
|
|
|
];
|
|
|
|
};
|
2021-09-02 20:55:17 +02:00
|
|
|
};
|
|
|
|
}
|