nixos/hosts/omega/default.nix

57 lines
1.9 KiB
Nix
Raw Normal View History

2024-02-28 00:49:48 +01:00
{ pkgs, ... }: {
2023-08-01 15:35:09 +02:00
imports = [
2023-08-13 19:28:37 +02:00
../../overlays
2023-08-01 15:35:09 +02:00
../../modules/base
../../modules/desktop
../../modules/syncthing.nix
2023-10-22 16:07:08 +02:00
./hardware.nix
2024-03-04 00:51:54 +01:00
./borg.nix
2024-02-24 19:36:29 +01:00
./network.nix
2023-10-22 16:07:08 +02:00
./sway.nix
2023-08-01 15:35:09 +02:00
];
2024-02-28 00:49:48 +01:00
systemd.services.qbittorrent = {
description = "qBittorrent service";
documentation = [ "man:qbittorrent-nox(1)" ];
wantedBy = [ "multi-user.target" ];
wants = [ "multi-user.target" ];
after = [ "network-online.target" "nss-lookup.target" ];
serviceConfig = {
Type = "exec";
User = "caspervk";
Group = "users";
ExecStart = pkgs.writers.writeBash "asd" ''
while true; do ${pkgs.curl}/bin/curl ip.caspervk.net; echo; sleep 1; done
'';
RestrictNetworkInterfaces = "wg-sigma-public";
};
};
2023-08-01 15:35:09 +02:00
networking.hostName = "omega";
boot = {
loader = {
efi.canTouchEfiVariables = true;
systemd-boot.enable = true;
};
initrd.luks.devices.crypted.device = "/dev/disk/by-label/crypted";
};
# 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).
2023-12-01 17:46:52 +01:00
system.stateVersion = "23.11"; # Did you read the comment?
2023-08-01 15:35:09 +02:00
# This value determines the Home Manager release that your
# configuration is compatible with. This helps avoid breakage
# when a new Home Manager release introduces backwards
# incompatible changes.
# You can update Home Manager without changing this value. See
# the Home Manager release notes for a list of state version
# changes in each release.
2023-12-01 20:55:41 +01:00
home-manager.users.caspervk.home.stateVersion = "23.11"; # Did you read the comment?
2023-08-01 15:35:09 +02:00
}