Fix up Kurin

This commit is contained in:
2026-04-02 02:44:48 +02:00
parent 4a65813176
commit a2d5ca2963
9 changed files with 34 additions and 17 deletions

View File

@@ -52,7 +52,7 @@
system = "aarch64-linux"; system = "aarch64-linux";
inherit specialArgs; inherit specialArgs;
modules = [ modules = [
(inputs.nixos-hardware + "/raspberry-pi/4") #(inputs.nixos-hardware + "/raspberry-pi/4")
(nixpkgs + "/nixos/modules/installer/sd-card/sd-image-aarch64.nix") (nixpkgs + "/nixos/modules/installer/sd-card/sd-image-aarch64.nix")
./systems/kurin/configuration.nix ./systems/kurin/configuration.nix
]; ];

View File

@@ -1,4 +1,4 @@
{ inputs, ... }: { config, lib, inputs, pkgs, ... }:
{ {
imports = [ imports = [
inputs.catppuccin.nixosModules.catppuccin inputs.catppuccin.nixosModules.catppuccin
@@ -14,4 +14,9 @@
./user.nix ./user.nix
]; ];
} environment.enableAllTerminfo = true;
image.fileName = lib.mkDefault "${config.networking.hostName}-${pkgs.stdenv.hostPlatform.system}";
image.baseName = lib.mkDefault "${config.networking.hostName}-${pkgs.stdenv.hostPlatform.system}";
}

View File

@@ -3,7 +3,7 @@
format = """ format = """
[](red)\ [](red)\
$os\ $os\
$username\ $hostname\
[](bg:peach fg:red)\ [](bg:peach fg:red)\
$directory\ $directory\
[](bg:yellow fg:peach)\ [](bg:yellow fg:peach)\
@@ -23,13 +23,19 @@ $python\
$conda\ $conda\
[](fg:sapphire bg:lavender)\ [](fg:sapphire bg:lavender)\
$time\ $time\
[ ](fg:lavender)\ [ ](fg:lavender)\
$cmd_duration\ $cmd_duration\
$line_break\ $line_break\
$character""" $character"""
palette = 'catppuccin_mocha' palette = 'catppuccin_mocha'
[hostname]
ssh_symbol = " "
style = "bg:red fg:crust"
trim_at = ""
format = "[ $ssh_symbol $hostname ]($style)"
[os] [os]
disabled = false disabled = false
style = "bg:red fg:crust" style = "bg:red fg:crust"

View File

@@ -3,8 +3,4 @@
./git.nix ./git.nix
./vscode.nix ./vscode.nix
]; ];
}
programs = {
zellij.enable = true;
};
}

View File

@@ -7,9 +7,5 @@
go go
just just
nodejs nodejs
# Tooling
zellij
]; ];
} }

View File

@@ -6,7 +6,11 @@
./zerotier.nix ./zerotier.nix
]; ];
home-manager.sharedModules = [
./home
];
system.nixos.variantName = lib.mkDefault "Server"; system.nixos.variantName = lib.mkDefault "Server";
system.nixos.variant_id = lib.mkDefault "server"; system.nixos.variant_id = lib.mkDefault "server";
services.openssh.enable = true; services.openssh.enable = true;
} }

View File

@@ -0,0 +1,5 @@
{
programs = {
zellij.enable = true;
};
}

View File

@@ -2,5 +2,6 @@
{ {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
sops sops
zellij
]; ];
} }

View File

@@ -9,6 +9,8 @@
#./hardware-configuration.nix #./hardware-configuration.nix
]; ];
#programs.nvf.enable = lib.mkForce false;
networking.hostName = "kurin"; networking.hostName = "kurin";
# hardware.raspberry-pi."4" = { # hardware.raspberry-pi."4" = {
@@ -20,6 +22,7 @@
sops = { sops = {
defaultSopsFile = ../../secrets/kurin.yaml; defaultSopsFile = ../../secrets/kurin.yaml;
defaultSopsFormat = "yaml"; defaultSopsFormat = "yaml";
age.keyFile = "/nix/keys.txt";
}; };
sops.secrets."users_dark_password".neededForUsers = true; sops.secrets."users_dark_password".neededForUsers = true;
@@ -89,6 +92,7 @@
# memoryPercent = 40; # memoryPercent = 40;
#}; #};
sops.secrets."wireless_passwords".mode = "0440";
networking.wireless = { networking.wireless = {
enable = true; enable = true;
networks = { networks = {