added katana
This commit is contained in:
parent
ba55e5571c
commit
e34907e038
6 changed files with 134 additions and 49 deletions
51
hosts/katana/default.nix
Normal file
51
hosts/katana/default.nix
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
{ modulesPath, config, pkgs, lib, self, ... }:
|
||||
|
||||
{
|
||||
system.stateVersion = "23.05";
|
||||
|
||||
# Allow the use of unfree packages
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
# Sound
|
||||
sound.enable = true;
|
||||
hardware.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
|
||||
# Localization
|
||||
time.timeZone = "America/Detroit";
|
||||
i18n = {
|
||||
defaultLocale = "en_US.UTF-8";
|
||||
extraLocaleSettings = {
|
||||
LC_ADDRESS = "en_US.UTF-8";
|
||||
LC_IDENTIFICATION = "en_US.UTF-8";
|
||||
LC_MEASUREMENT = "en_US.UTF-8";
|
||||
LC_MONETARY = "en_US.UTF-8";
|
||||
LC_NAME = "en_US.UTF-8";
|
||||
LC_NUMERIC = "en_US.UTF-8";
|
||||
LC_PAPER = "en_US.UTF-8";
|
||||
LC_TELEPHONE = "en_US.UTF-8";
|
||||
LC_TIME = "en_US.UTF-8";
|
||||
};
|
||||
};
|
||||
|
||||
# Enable Services.
|
||||
services = {
|
||||
printing.enable = true;
|
||||
xserver = {
|
||||
enable = true;
|
||||
displayManager.gdm.enable = true;
|
||||
desktopManager.gnome.enable = true;
|
||||
layout = "us";
|
||||
xkbVariant = "";
|
||||
};
|
||||
pipewire = {
|
||||
enable = true;
|
||||
alsa = {
|
||||
enable = true;
|
||||
support32Bit = true;
|
||||
};
|
||||
pulse.enable = true;
|
||||
jack.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
13
hosts/katana/networkd.nix
Normal file
13
hosts/katana/networkd.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
{ modulesPath, config, pkgs, lib, self, ... }:
|
||||
|
||||
{
|
||||
networking = {
|
||||
hostName = "katana"; # Define your hostname.
|
||||
networkmanager.enable = true; #Enable Network Manager
|
||||
firewall = {
|
||||
allowedTCPPorts = [];
|
||||
allowedUDPPorts = [];
|
||||
};
|
||||
};
|
||||
}
|
||||
29
hosts/katana/system-pkgs.nix
Normal file
29
hosts/katana/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
|
||||
];
|
||||
}
|
||||
|
|
@ -1,42 +0,0 @@
|
|||
{ modulesPath, config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
(modulesPath + "/profiles/qemu-guest.nix")
|
||||
../modules/services/docker.nix
|
||||
../modules/users/arouzing.nix
|
||||
../modules/users/speccon18.nix
|
||||
../modules/services/openssh.nix
|
||||
];
|
||||
|
||||
# base packages
|
||||
environment.systemPackages = with pkgs; [
|
||||
htop
|
||||
vim
|
||||
nano
|
||||
tailscale
|
||||
];
|
||||
|
||||
networking = {
|
||||
hostName = "openldap"; # Define your hostname.
|
||||
firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [];
|
||||
allowedUDPPorts = [];
|
||||
checkReversePath = "loose";
|
||||
};
|
||||
# networkmanager.enable = true;
|
||||
};
|
||||
|
||||
services.tailscale.enable = true;
|
||||
|
||||
time.timeZone = "America/Detroit";
|
||||
|
||||
## main services
|
||||
system.stateVersion = "22.11";
|
||||
|
||||
### testing ###
|
||||
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "sr_mod" "virtio_blk" ];
|
||||
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue