nixos/Vanguard.nix

96 lines
2.7 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ pkgs, ... }:
{
imports = [
./home
./common.nix
./hardware/audio.nix
./hardware/bluetooth.nix
./hardware/syncthing.nix
./locales/en_GB.nix
./desktop/hyprland.nix
./desktop/steam.nix
];
networking.hostName = "Vanguard"; # Define your hostname.
#networking.wireless.networks."LAN LAN Ranch".pskRaw = "d4c31e976456783b61d573ee49c94f93914a81bf1048c2f2e1e166c36bdfcd4a";
networking.extraHosts = ''
192.168.1.230 Legion
'';
networking.nameservers = [ "192.168.1.230" ];
services.openssh.enable = true;
networking.firewall.allowedTCPPorts = [ 22 ];
services.xserver.displayManager.defaultSession = "steam";
# Define a user account. Don't forget to set a password with passwd.
users.users.xenia = {
isNormalUser = true;
description = "Evie Litherland-Smith";
extraGroups = [ "networkmanager" "wheel" ];
shell = pkgs.fish;
openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAII1tJFdbiyJApuVZFvo9E9kjlBwvXZeySqVuS2qGdxha tux@monarch" ];
};
home-manager.users.xenia = { ... }: {
imports = [ ./home/collections/personal ];
# Home Manager needs a bit of information about you and the
# paths it should manage.
home.username = "xenia";
home.homeDirectory = "/home/xenia";
home.stateVersion = "22.11";
programs.fish.shellAbbrs.update = "sudo nixos-rebuild switch";
};
services.syncthing = {
user = "xenia";
group = "users";
dataDir = "/mnt/secondary/syncthing";
devices = {
"ion" = { id = "7DD4NPH-6T2ET5A-4FCLFWW-CS6UR2W-IO5XQXC-DM5B2Q4-6X7DGU2-UKKVEAB"; };
"monarch" = { id = "CJSUZQY-67XBLEZ-VKVHQHI-BLEUZNF-G4237AV-AW44CGH-F3JDKXU-CWT3RQZ"; };
};
folders = {
"Camera" = {
path = "/mnt/secondary/syncthing/camera";
label = "Camera";
id = "fp4_4j7w-photos";
devices = [ "ion" "monarch" ];
type = "receiveonly";
ignorePerms = true;
};
"Pictures" = {
path = "/mnt/secondary/syncthing/pictures";
label = "Pictures";
id = "ziuj8-rm6dn";
devices = [ "ion" "monarch" ];
ignorePerms = true;
};
"Movies" = {
path = "/mnt/secondary/syncthing/movies";
label = "Movies";
id = "3f75o-4x6sq";
devices = [ "ion" "monarch" ];
ignorePerms = true;
};
"Documents" = {
path = "/mnt/secondary/syncthing/documents";
label = "Documents";
id = "qc6qa-bipsd";
devices = [ "ion" "monarch" ];
ignorePerms = true;
};
};
};
# Extra hardware configuration
hardware.openrazer = {
enable = true;
users = [ "xenia" ];
};
system.autoUpgrade = {
enable = true;
allowReboot = false;
};
}