2023-03-29 15:38:01 +01:00
|
|
|
|
{ pkgs, ... }:
|
2023-03-28 09:01:52 +01:00
|
|
|
|
{
|
2023-03-28 09:34:10 +01:00
|
|
|
|
imports = [
|
2023-05-05 15:02:31 +01:00
|
|
|
|
./home
|
2023-03-29 13:43:02 +01:00
|
|
|
|
./common.nix
|
2023-04-29 12:36:57 +01:00
|
|
|
|
./hardware/audio.nix
|
|
|
|
|
./hardware/bluetooth.nix
|
2023-05-06 15:24:31 +01:00
|
|
|
|
./hardware/syncthing.nix
|
2023-03-29 13:43:02 +01:00
|
|
|
|
./locales/en_GB.nix
|
2023-04-27 12:43:22 +01:00
|
|
|
|
./desktop/hyprland.nix
|
2023-04-30 10:37:19 +01:00
|
|
|
|
./desktop/steam.nix
|
2023-03-28 19:54:01 +01:00
|
|
|
|
];
|
2023-03-28 09:01:52 +01:00
|
|
|
|
|
|
|
|
|
networking.hostName = "Vanguard"; # Define your hostname.
|
2023-04-30 10:37:19 +01:00
|
|
|
|
#networking.wireless.networks."LAN LAN Ranch".pskRaw = "d4c31e976456783b61d573ee49c94f93914a81bf1048c2f2e1e166c36bdfcd4a";
|
|
|
|
|
networking.extraHosts = ''
|
|
|
|
|
192.168.1.230 Legion
|
|
|
|
|
'';
|
|
|
|
|
networking.nameservers = [ "192.168.1.230" ];
|
2023-05-04 11:06:12 +01:00
|
|
|
|
services.openssh.enable = true;
|
|
|
|
|
networking.firewall.allowedTCPPorts = [ 22 ];
|
2023-04-30 10:37:19 +01:00
|
|
|
|
|
2023-05-04 06:25:27 +01:00
|
|
|
|
services.xserver.displayManager.defaultSession = "steam";
|
2023-03-28 09:01:52 +01:00
|
|
|
|
|
|
|
|
|
# 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" ];
|
2023-03-29 15:38:01 +01:00
|
|
|
|
shell = pkgs.fish;
|
2023-05-04 11:06:12 +01:00
|
|
|
|
openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAII1tJFdbiyJApuVZFvo9E9kjlBwvXZeySqVuS2qGdxha tux@monarch" ];
|
2023-03-28 09:01:52 +01:00
|
|
|
|
};
|
2023-04-25 14:43:08 +01:00
|
|
|
|
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";
|
2023-05-06 14:02:35 +01:00
|
|
|
|
|
|
|
|
|
programs.fish.shellAbbrs.update = "sudo nixos-rebuild switch";
|
2023-04-25 14:43:08 +01:00
|
|
|
|
};
|
2023-03-28 09:01:52 +01:00
|
|
|
|
|
2023-05-06 15:24:31 +01:00
|
|
|
|
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;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2023-04-04 18:19:44 +01:00
|
|
|
|
# Extra hardware configuration
|
|
|
|
|
hardware.openrazer = {
|
|
|
|
|
enable = true;
|
|
|
|
|
users = [ "xenia" ];
|
|
|
|
|
};
|
2023-05-04 07:01:03 +01:00
|
|
|
|
|
|
|
|
|
system.autoUpgrade = {
|
2023-05-06 14:02:35 +01:00
|
|
|
|
enable = false;
|
2023-05-04 07:01:03 +01:00
|
|
|
|
allowReboot = false;
|
|
|
|
|
};
|
2023-03-28 09:01:52 +01:00
|
|
|
|
}
|