Clean up home manager stuff

This commit is contained in:
Nathan McCarty 2022-06-17 18:38:11 -04:00
parent 91c80de756
commit 96a6a21ecb
Signed by: thatonelutenist
GPG Key ID: D70DA3DD4D1E9F96
6 changed files with 135 additions and 97 deletions

View File

@ -1,6 +1,14 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
options.nathans-home.bat = with lib; {
enable = mkOption {
type = types.bool;
default = true;
};
};
config = lib.mkIf config.nathans-home.bat.enable {
programs.bat = { programs.bat = {
enable = true; enable = true;
config = { config = {
@ -8,4 +16,5 @@
style = "header,rule,snip,changes"; style = "header,rule,snip,changes";
}; };
}; };
};
} }

View File

@ -1,6 +1,13 @@
{ config, pkgs, ... }: { config, pkgs, lib, ... }:
{ {
options.nathans-home.fish = with lib; {
enable = mkOption {
type = types.bool;
default = true;
};
};
config = lib.mkIf config.nathans-home.fish.enable {
## Shell ## Shell
# Shell proper # Shell proper
programs.fish = { programs.fish = {
@ -54,4 +61,5 @@
}; };
}; };
}; };
};
} }

View File

@ -1,6 +1,14 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
options.nathans-home.ssh = with lib; {
enable = mkOption {
type = types.bool;
default = true;
};
};
config = lib.mkIf config.nathans-home.ssh.enable {
programs.ssh = { programs.ssh = {
# SSH configuration # SSH configuration
enable = true; enable = true;
@ -16,17 +24,17 @@
"levitation" = { "levitation" = {
forwardAgent = true; forwardAgent = true;
user = "nathan"; user = "nathan";
hostname = "172.23.12.134"; hostname = "100.95.223.6";
}; };
"perception" = { "perception" = {
forwardAgent = true; forwardAgent = true;
user = "nathan"; user = "nathan";
hostname = "172.23.55.145"; hostname = "100.67.146.101";
}; };
"oracles" = { "oracles" = {
forwardAgent = true; forwardAgent = true;
user = "nathan"; user = "nathan";
hostname = "172.23.108.12"; hostname = "100.66.15.34";
}; };
"tounge" = { "tounge" = {
forwardAgent = true; forwardAgent = true;
@ -41,7 +49,7 @@
"matrix.community.rs" = { "matrix.community.rs" = {
forwardAgent = true; forwardAgent = true;
user = "nathan"; user = "nathan";
hostname = "172.23.129.209"; hostname = "100.113.74.107";
}; };
"de1955" = { "de1955" = {
user = "de1955"; user = "de1955";
@ -49,4 +57,5 @@
}; };
}; };
}; };
};
} }

View File

@ -8,6 +8,7 @@
domain = "mccarty.io"; domain = "mccarty.io";
useDHCP = false; useDHCP = false;
interfaces.enp5s0.useDHCP = true; interfaces.enp5s0.useDHCP = true;
nat.externalInterface = "enp5s0";
}; };
### ###
## Enable programs we don't want on every machine ## Enable programs we don't want on every machine

View File

@ -7,4 +7,11 @@
# Automatically prune to keep things lean # Automatically prune to keep things lean
autoPrune.enable = true; autoPrune.enable = true;
}; };
# Setup networking for nixos containers
networking = {
nat = {
enable = true;
internalInterfaces = [ "ve-+" ];
};
};
} }

View File

@ -183,6 +183,10 @@
groupBy = "app-name"; groupBy = "app-name";
# Bottom right corner # Bottom right corner
anchor = "bottom-right"; anchor = "bottom-right";
# Maximum visible notifications
maxVisible = 10;
# Sort by time in descending order (newest first)
sort = "-time";
}; };
# Swayidle for automatic screen locking # Swayidle for automatic screen locking
services.swayidle = { services.swayidle = {