mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-15 09:17:31 -08:00
initial config for htpc role and first htpc machine in json
This commit is contained in:
parent
85d52e311f
commit
6184934d1c
@ -22,5 +22,9 @@
|
||||
"wsl": {
|
||||
"role": "wsl",
|
||||
"user": "user"
|
||||
},
|
||||
"htpc-bako": {
|
||||
"role": "htpc",
|
||||
"user": "starr"
|
||||
}
|
||||
}
|
||||
|
26
provision/hosts/htpc/configuration.nix
Normal file
26
provision/hosts/htpc/configuration.nix
Normal file
@ -0,0 +1,26 @@
|
||||
{ config, pkgs, user, lib, hostname, ... }:
|
||||
{
|
||||
# Use performance governor for sweet gaming performance!
|
||||
powerManagement.cpuFreqGovernor = "performance";
|
||||
|
||||
# Set networking options
|
||||
networking.hostName = "${hostname}";
|
||||
networking.firewall.checkReversePath = "loose";
|
||||
networking.firewall.enable = false;
|
||||
|
||||
# Modules
|
||||
modules = {
|
||||
desktop = {
|
||||
enable = true;
|
||||
gnome.enable = true;
|
||||
};
|
||||
programs = {
|
||||
chezmoi.apply = true;
|
||||
kitty.enable = true;
|
||||
};
|
||||
services = {
|
||||
samba-client.enable = true;
|
||||
ssh.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
21
provision/hosts/htpc/default.nix
Normal file
21
provision/hosts/htpc/default.nix
Normal file
@ -0,0 +1,21 @@
|
||||
{ lib, specialArgs, system, inputs, agenix, home-manager, ... }:
|
||||
let
|
||||
user = specialArgs.user;
|
||||
hostname = specialArgs.hostname;
|
||||
in {
|
||||
inherit system;
|
||||
specialArgs = { inherit user hostname inputs home-manager; };
|
||||
modules = [
|
||||
../default # shared by all configs
|
||||
../default/physical/configuration.nix # shared by physical machines
|
||||
./configuration.nix # htpc specific
|
||||
../../modules
|
||||
/etc/nixos/hardware-configuration.nix
|
||||
agenix.nixosModules.default
|
||||
home-manager.nixosModules.home-manager {
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.extraSpecialArgs = { inherit user; };
|
||||
}
|
||||
];
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user