modularized hosts creatorforge.nix
This commit is contained in:
parent
38d653d2ff
commit
43ed213a93
14 changed files with 146 additions and 123 deletions
27
hosts/creatorforge/creatorforge.nix
Normal file
27
hosts/creatorforge/creatorforge.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{ modulesPath, config, pkgs, lib, self, ... }:
|
||||
|
||||
{
|
||||
# Sets the default version to track for system-pkgs
|
||||
system.stateVersion = "22.11";
|
||||
# Set the default timezone
|
||||
time.timeZone = lib.mkDefault "America/Detroit";
|
||||
# Allow non opensource software to be installed
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
# NixOS Settings
|
||||
nix = {
|
||||
# Sets flakes to unstable track instead of stable #
|
||||
package = pkgs.nixUnstable; # or versioned attributes like nix_2_4
|
||||
# Enable flakes and nix-command
|
||||
extraOptions = ''experimental-features = nix-command flakes'';
|
||||
# Auto maintainence
|
||||
settings.auto-optimise-store = lib.mkDefault true;
|
||||
# Prevent tampering of the pkgstore
|
||||
readOnlyStore = true;
|
||||
# Garbage collection
|
||||
gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 7d";
|
||||
};
|
||||
};
|
||||
}
|
||||
13
hosts/creatorforge/networkd.nix
Normal file
13
hosts/creatorforge/networkd.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{ modulesPath, config, pkgs, lib, self, ... }:
|
||||
{
|
||||
networking = {
|
||||
hostName = "creatorforge"; # Define your hostname.
|
||||
useDHCP = lib.mkForce true;
|
||||
firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [];
|
||||
allowedUDPPorts = [];
|
||||
checkReversePath = "loose";
|
||||
};
|
||||
};
|
||||
}
|
||||
29
hosts/creatorforge/system-pkgs.nix
Normal file
29
hosts/creatorforge/system-pkgs.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{ modulesPath, config, pkgs, lib, self, ... }:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
ripgrep
|
||||
tree
|
||||
cargo
|
||||
feh
|
||||
unrar
|
||||
unzip
|
||||
gzip
|
||||
p7zip
|
||||
bzip2
|
||||
dconf2nix
|
||||
rustc
|
||||
bat
|
||||
exa
|
||||
mdbook
|
||||
uutils-coreutils
|
||||
htop
|
||||
zsh
|
||||
tailscale
|
||||
dig #dns lookup
|
||||
rage #file encryption
|
||||
age-plugin-yubikey #plugin for rage to manage yubi-2fa
|
||||
sops #file based secrets operations
|
||||
direnv #used for development environments
|
||||
python39
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue