Initial commit
This commit is contained in:
commit
faec0a9026
26 changed files with 442 additions and 0 deletions
7
machines/lil-maid/modules/default.nix
Normal file
7
machines/lil-maid/modules/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
imports = [
|
||||
./network
|
||||
./graphics.nix
|
||||
./sops.nix
|
||||
];
|
||||
}
|
19
machines/lil-maid/modules/graphics.nix
Normal file
19
machines/lil-maid/modules/graphics.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
services.desktopManager.plasma6 = {
|
||||
enable = true;
|
||||
};
|
||||
services.displayManager.sddm = {
|
||||
enable = true;
|
||||
wayland.enable = true;
|
||||
};
|
||||
|
||||
services.xserver.xkb.layout = "us";
|
||||
|
||||
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
||||
environment.plasma6.excludePackages = with pkgs.kdePackages; [
|
||||
plasma-browser-integration
|
||||
konsole
|
||||
oxygen
|
||||
];
|
||||
}
|
16
machines/lil-maid/modules/network/default.nix
Normal file
16
machines/lil-maid/modules/network/default.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
imports = [
|
||||
./firewall.nix
|
||||
./ssh.nix
|
||||
|
||||
./vpn
|
||||
];
|
||||
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
networking.search = [
|
||||
"8.8.8.8"
|
||||
"8.8.4.4"
|
||||
];
|
||||
networking.hostName = "lil-maid";
|
||||
}
|
5
machines/lil-maid/modules/network/firewall.nix
Normal file
5
machines/lil-maid/modules/network/firewall.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
networking.firewall = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
9
machines/lil-maid/modules/network/ssh.nix
Normal file
9
machines/lil-maid/modules/network/ssh.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
PasswordAuthentication = false;
|
||||
Compression = "yes";
|
||||
};
|
||||
};
|
||||
}
|
5
machines/lil-maid/modules/network/vpn/default.nix
Normal file
5
machines/lil-maid/modules/network/vpn/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
imports = [
|
||||
./hft.nix
|
||||
];
|
||||
}
|
4
machines/lil-maid/modules/network/vpn/hft.nix
Normal file
4
machines/lil-maid/modules/network/vpn/hft.nix
Normal file
|
@ -0,0 +1,4 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
systemd.services.openvpn-hft.wants = [ "shadowsocks-hft.service" ];
|
||||
}
|
9
machines/lil-maid/modules/sops.nix
Normal file
9
machines/lil-maid/modules/sops.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
imports = [
|
||||
../../../modules/sops.nix
|
||||
];
|
||||
maid.sops = {
|
||||
work.enable = true;
|
||||
viendesu.enable = true;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue