230 current 2025-06-13 02:20:57 25.11.20250607.3e3afe5 6.15.1 *

This commit is contained in:
2025-06-13 02:21:16 -04:00
parent c7bb70d901
commit ce888c4527
6 changed files with 81 additions and 73 deletions

View File

@@ -123,8 +123,8 @@
}; };
kuromi = mkNixOSConfigurations { kuromi = mkNixOSConfigurations {
host = hosts.kuromi; host = hosts.kuromi;
nixpkgs = inputs.nixpkgs; nixpkgs = inputs.nixpkgs-stable;
home-manager = inputs.home-manager; home-manager = inputs.home-manager-stable;
modules = []; modules = [];
}; };
}; };

View File

@@ -1,5 +1,6 @@
{ {
config, config,
lib,
pkgs, pkgs,
... ...
}: { }: {
@@ -77,6 +78,13 @@
programs.bat.enable = true; programs.bat.enable = true;
programs.btop.enable = true;
programs.emacs = {
enable = true;
package = lib.mkDefault pkgs.emacs-nox;
};
programs.fastfetch = { programs.fastfetch = {
enable = true; enable = true;
settings = { settings = {
@@ -149,13 +157,10 @@
''; '';
}; };
# programs.senpai.enable = true;
# programs.sm64ex.enable = true;
programs.starship = { programs.starship = {
enable = true; enable = true;
enableBashIntegration = true; enableBashIntegration = true;
enableZshIntegration = true;
settings = { settings = {
line_break = { line_break = {
disabled = true; disabled = true;
@@ -181,6 +186,7 @@
programs.yazi = { programs.yazi = {
enable = true; enable = true;
enableBashIntegration = true; enableBashIntegration = true;
enableZshIntegration = true;
}; };
programs.yt-dlp = { programs.yt-dlp = {

View File

@@ -109,7 +109,10 @@
programs.kitty = { programs.kitty = {
enable = true; enable = true;
enableGitIntegration = true; enableGitIntegration = true;
shellIntegration.enableBashIntegration = true; shellIntegration = {
enableBashIntegration = true;
enableZshIntegration = true;
};
font = { font = {
name = "BlexMono Nerd Font"; name = "BlexMono Nerd Font";
size = 11; size = 11;

View File

@@ -9,7 +9,7 @@
imports = [ imports = [
# Include the results of the hardware scan. # Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
../../nixos/desktop.nix ../../nixos/base.nix
]; ];
networking.hostName = "kuromi"; networking.hostName = "kuromi";

View File

@@ -4,8 +4,7 @@
... ...
}: { }: {
imports = [ imports = [
../../home/desktop.nix ../../home/base.nix
../../home/plasma.nix
]; ];
home.stateVersion = "25.05"; home.stateVersion = "25.05";

View File

@@ -6,34 +6,31 @@
... ...
}: { }: {
# Bootloader. # Bootloader.
boot.loader.systemd-boot = { boot.loader = {
efi.canTouchEfiVariables = true;
systemd-boot = {
enable = true; enable = true;
configurationLimit = 10; configurationLimit = 10;
}; };
boot.loader.efi.canTouchEfiVariables = true; };
# Garbage collection # Garbage collection
nix.gc = { nix = {
gc = {
automatic = true; automatic = true;
dates = "weekly"; dates = "weekly";
options = "--delete-older-than 1w"; options = "--delete-older-than 1w";
}; };
nixPath = ["nixpkgs=${inputs.nixpkgs}"];
# Optimize store settings = {
nix.settings = {
auto-optimise-store = true; auto-optimise-store = true;
download-buffer-size = 524288000; download-buffer-size = 524288000;
experimental-features = ["nix-command" "flakes"]; experimental-features = ["nix-command" "flakes"];
}; };
};
# Allow power management # Allow unfree packages
powerManagement.enable = true; nixpkgs.config.allowUnfree = true;
# Firmware updates
services.fwupd.enable = true;
# Enable networking
networking.networkmanager.enable = true;
# Set your time zone. # Set your time zone.
time.timeZone = "America/New_York"; time.timeZone = "America/New_York";
@@ -53,12 +50,6 @@
LC_TIME = "C.UTF-8"; LC_TIME = "C.UTF-8";
}; };
# Catppuccin
catppuccin = {
enable = true;
flavor = "mocha";
};
# Configure keymap # Configure keymap
console.keyMap = lib.mkDefault "jp106"; console.keyMap = lib.mkDefault "jp106";
@@ -67,11 +58,17 @@
model = lib.mkDefault "jp106"; model = lib.mkDefault "jp106";
}; };
# Enable CUPS to print documents. # Allow power management
services.printing.enable = true; powerManagement.enable = true;
# Allow unfree packages # Enable networking
nixpkgs.config.allowUnfree = true; networking.networkmanager.enable = true;
# Catppuccin
catppuccin = {
enable = true;
flavor = "mocha";
};
# Android debug tools # Android debug tools
programs.adb.enable = true; programs.adb.enable = true;
@@ -145,6 +142,13 @@
vimAlias = true; vimAlias = true;
}; };
# ssh agent
programs.gnupg.agent.enable = true;
programs.ssh = {
enableAskPassword = false;
};
sops = { sops = {
defaultSopsFile = ../secrets.yaml; defaultSopsFile = ../secrets.yaml;
validateSopsFiles = false; validateSopsFiles = false;
@@ -185,36 +189,6 @@
yubikey-manager yubikey-manager
]; ];
nix.nixPath = ["nixpkgs=${inputs.nixpkgs}"];
# ssh agent
# programs.mtr.enable = true;
programs.gnupg.agent.enable = true;
programs.ssh = {
enableAskPassword = false;
};
services.fstrim.enable = lib.mkDefault true;
# Enable the OpenSSH daemon.
services.openssh = {
enable = true;
settings = {
PermitRootLogin = "no";
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
};
};
services.pcscd.enable = true;
services.udev.packages = with pkgs; [
yubikey-personalization
];
services.yubikey-agent.enable = true;
security.pam = lib.optionalAttrs pkgs.stdenv.isLinux { security.pam = lib.optionalAttrs pkgs.stdenv.isLinux {
sshAgentAuth.enable = true; sshAgentAuth.enable = true;
u2f = { u2f = {
@@ -237,4 +211,30 @@
pkcs11.enable = true; pkcs11.enable = true;
tctiEnvironment.enable = true; tctiEnvironment.enable = true;
}; };
services.fstrim.enable = lib.mkDefault true;
# Firmware updates
services.fwupd.enable = true;
# Enable the OpenSSH daemon.
services.openssh = {
enable = true;
settings = {
PermitRootLogin = "no";
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
};
};
services.pcscd.enable = true;
# Enable CUPS to print documents.
services.printing.enable = true;
services.udev.packages = with pkgs; [
yubikey-personalization
];
services.yubikey-agent.enable = true;
} }