2023-06-19 18:25:08 +00:00
|
|
|
|
{
|
2023-03-26 16:14:49 +00:00
|
|
|
|
imports = [
|
|
|
|
|
./hardware-configuration.nix
|
|
|
|
|
../../common/fragments/graphical
|
|
|
|
|
../../common/fragments/yubikey.nix
|
|
|
|
|
../../common/home_manager/common.nix
|
|
|
|
|
];
|
|
|
|
|
|
2023-06-19 18:25:08 +00:00
|
|
|
|
nixpkgs.overlays = [
|
2023-06-20 15:19:03 +00:00
|
|
|
|
(final: prev: {
|
|
|
|
|
pads = final.callPackage ../../common/pkgs/pads.nix { };
|
|
|
|
|
bspm = final.callPackage ../../common/pkgs/bspm.nix { };
|
2023-07-07 14:02:03 +00:00
|
|
|
|
polybar-spotify =
|
|
|
|
|
final.callPackage ../../common/pkgs/polybar-spotify.nix { };
|
2023-06-20 15:19:03 +00:00
|
|
|
|
})
|
2023-06-19 18:25:08 +00:00
|
|
|
|
];
|
|
|
|
|
|
2023-03-26 16:14:49 +00:00
|
|
|
|
# Bootloader.
|
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
boot.loader.efi.efiSysMountPoint = "/boot/efi";
|
|
|
|
|
|
|
|
|
|
boot.loader.systemd-boot.configurationLimit = 5;
|
|
|
|
|
|
|
|
|
|
# Setup keyfile
|
|
|
|
|
boot.initrd.secrets = { "/crypto_keyfile.bin" = null; };
|
|
|
|
|
|
|
|
|
|
networking.hostName = "ritual";
|
|
|
|
|
|
|
|
|
|
# Enable networking
|
|
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
|
|
|
|
|
|
# Enable the OpenSSH daemon.
|
|
|
|
|
services.openssh = {
|
|
|
|
|
enable = true;
|
|
|
|
|
banner = ''
|
|
|
|
|
Hello mistress ^,,^
|
|
|
|
|
'';
|
2023-06-01 17:07:54 +00:00
|
|
|
|
settings.PasswordAuthentication = false;
|
2023-03-26 16:14:49 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
virtualisation = {
|
|
|
|
|
podman = {
|
|
|
|
|
enable = true;
|
|
|
|
|
dockerCompat = true;
|
2023-06-01 17:07:54 +00:00
|
|
|
|
defaultNetwork.settings.dns_enabled = true;
|
2023-03-26 16:14:49 +00:00
|
|
|
|
};
|
|
|
|
|
oci-containers = { backend = "podman"; };
|
|
|
|
|
};
|
|
|
|
|
|
2023-06-01 17:07:54 +00:00
|
|
|
|
hardware.bluetooth = {
|
|
|
|
|
enable = true;
|
|
|
|
|
settings = { General = { Disable = "Headset"; }; };
|
|
|
|
|
};
|
2023-03-27 15:21:43 +00:00
|
|
|
|
|
2023-07-07 14:02:03 +00:00
|
|
|
|
# Don't suspend when closed and plugged into power
|
2023-07-27 18:37:12 +00:00
|
|
|
|
services.logind.lidSwitchExternalPower = "lock";
|
2023-07-07 14:02:03 +00:00
|
|
|
|
|
2023-03-26 16:14:49 +00:00
|
|
|
|
# This value determines the NixOS release from which the default
|
|
|
|
|
# settings for stateful data, like file locations and database versions
|
|
|
|
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
|
|
|
|
# this value at the release version of the first install of this system.
|
|
|
|
|
# Before changing this value read the documentation for this option
|
|
|
|
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
|
|
|
|
system.stateVersion = "22.11"; # Did you read the comment?
|
|
|
|
|
}
|
|
|
|
|
|