feat: init kariru

This commit is contained in:
notohh 2023-05-17 10:13:01 -04:00
parent 75a68d250f
commit 78b98fa927
Signed by: notohh
GPG key ID: BD47506D475EE86D
8 changed files with 135 additions and 8 deletions

View file

@ -71,4 +71,25 @@ in {
}
];
};
kariru = nixosSystem {
inherit system;
specialArgs = {inherit inputs;};
modules = [
./kariru
sopsModule
diskoModule
hmModule
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.notoh = {
imports = [
./kariru/home.nix
];
};
};
}
];
};
}

View file

@ -20,5 +20,15 @@ inputs: {
sshOpts = ["-t" "-i" "~/.ssh/sakura"];
magicRollback = false;
};
kariru = {
hostname = "kariru";
profiles.system = {
user = "root";
path = activate.nixos inputs.self.nixosConfigurations.kariru;
};
sshUser = "notoh";
sshOpts = ["-t" "-i" "~/.ssh/kariru"];
magicRollback = false;
};
};
}

44
hosts/kariru/default.nix Normal file
View file

@ -0,0 +1,44 @@
{
config,
pkgs,
...
}: {
imports = [
./hardware-configuration.nix
../../modules
../../modules/services/arr
];
boot.loader = {
grub = {
enable = true;
configurationLimit = 3;
device = "/dev/sda";
useOSProber = false;
};
};
networking = {
hostName = "kariru";
};
services.xserver = {
layout = "us";
xkbVariant = "";
};
users = {
defaultUserShell = pkgs.nushell;
users.notoh = {
isNormalUser = true;
description = "notoh";
extraGroups = ["networkmanager" "wheel" "docker"];
};
};
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
pinentryFlavor = "curses";
};
}

View file

@ -0,0 +1,37 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{
config,
lib,
pkgs,
modulesPath,
...
}: {
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod"];
boot.initrd.kernelModules = [];
boot.kernelModules = [];
boot.extraModulePackages = [];
fileSystems."/" = {
device = "/dev/disk/by-uuid/f5a0738c-d027-4ffb-82ec-9901ca6b310b";
fsType = "ext4";
};
swapDevices = [
{device = "/dev/disk/by-uuid/f28bad28-ae14-4aa7-85c5-47abe46bae56";}
];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.ens18.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}

18
hosts/kariru/home.nix Normal file
View file

@ -0,0 +1,18 @@
{
config,
pkgs,
...
}: {
imports = [
../../home
];
systemd.user.startServices = "sd-switch";
programs.home-manager.enable = true;
home = {
username = "notoh";
homeDirectory = "/home/notoh";
stateVersion = "23.05";
};
}

View file

@ -36,10 +36,6 @@
};
};
environment.systemPackages = with pkgs; [
wget
];
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;

View file

@ -22,6 +22,10 @@
device = "192.168.1.71:/volume1/stash";
fsType = "nfs";
};
fileSystems."/media" = {
device = "192.168.1.71:/volume1/media";
fsType = "nfs";
};
swapDevices = [
{device = "/dev/disk/by-uuid/c5afba13-f1af-4e7f-994b-f565c52d92fc";}
];

View file

@ -6,6 +6,7 @@
imports = [
./hardware-configuration.nix
../../modules
../../modules/services/arr
];
boot.loader = {
@ -35,10 +36,6 @@
};
};
environment.systemPackages = with pkgs; [
wget
];
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;