add takamaki config, clean up host configs

This commit is contained in:
greyweather committed 2026-07-11 11:50:29 +01:00
1 parent 1104817121
commit 988e5664ef
9 files changed
+230 -130

No files matched your search

+9 -1
View File
@@ -3,9 +3,13 @@
pkgs, pkgs,
specialArgs, specialArgs,
... ...
}: { }: let
modules-dir = ./modules;
in {
imports = [ imports = [
./hosts/${specialArgs.hostname}/hardware-configuration.nix ./hosts/${specialArgs.hostname}/hardware-configuration.nix
"${modules-dir}/nh.nix"
"${modules-dir}/home-manager.nix"
]; ];
networking.hostName = specialArgs.hostname; networking.hostName = specialArgs.hostname;
@@ -70,6 +74,10 @@
powerOnBoot = false; powerOnBoot = false;
}; };
programs.gnupg.agent = {
enable = true;
};
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions # settings for stateful data, like file locations and database versions
# on your system were taken. It‘s perfectly fine and recommended to leave # on your system were taken. It‘s perfectly fine and recommended to leave
+151
View File
@@ -0,0 +1,151 @@
{
pkgs,
lib,
...
}: {
programs.zsh.initContent = lib.mkOrder 1500 "fastfetch";
programs.fastfetch = {
enable = true;
settings = {
logo = {
type = "builtin";
padding = {
top = 1;
left = 2;
right = 2;
};
};
modules = [
{
type = "custom";
format = "┌────────────────── Software ──────────────────┐";
}
{
type = "title";
key = " Session";
format = "{user-name}@{host-name}";
}
{
type = "os";
key = " Distro";
format = "{pretty-name}";
}
{
type = "host";
key = " Device";
format = "{version}";
}
{
type = "kernel";
key = " Kernel";
}
{
type = "shell";
key = " Shell";
}
{
type = "terminal";
key = " Term";
}
{
type = "de";
key = " DE";
}
{
type = "wm";
key = " WM";
}
{
type = "custom";
format = "└──────────────────────────────────────────────┘";
}
"break"
{
type = "custom";
format = "┌────────────────── Hardware ──────────────────┐";
}
{
type = "cpu";
key = " CPU";
format = "{name}";
}
{
type = "memory";
key = " RAM";
percent = {
green = 50;
yellow = 80;
type = 0;
};
}
{
type = "swap";
key = " Swap";
percent = {
green = 50;
yellow = 80;
type = 0;
};
separate = false;
}
{
type = "disk";
key = " Disk";
showRegular = true;
showExternal = false;
showHidden = false;
showSubvolumes = false;
showReadOnly = true;
ShowUnknown = false;
hideFolders = "/efi:/boot:/boot/*:/run/media/*";
useAvailable = false;
percent = {
green = 50;
yellow = 80;
type = 0;
};
}
{
type = "localip";
key = " IP";
showIpv4 = true;
showIpv6 = false;
showMac = false;
showLoop = false;
showPrefixLen = true;
showMtu = false;
showSpeed = false;
showFlags = false;
compact = false;
defaultRouteOnly = true;
showAllIps = false;
}
{
type = "custom";
format = "└──────────────────────────────────────────────┘";
}
"break"
{
type = "custom";
format = "┌──────────────── Age / Uptime ────────────────┐";
}
{
type = "disk";
key = " OS Age";
folders = "/";
format = "{create-time:10} ({days} days)";
}
{
type = "uptime";
key = " Uptime";
}
{
type = "custom";
format = "└──────────────────────────────────────────────┘";
}
];
};
};
}
-11
View File
@@ -12,8 +12,6 @@ in {
imports = [ imports = [
../../global-default.nix ../../global-default.nix
./hardware-configuration.nix ./hardware-configuration.nix
"${modules-dir}/nh.nix"
"${modules-dir}/home-manager.nix"
"${modules-dir}/zsh.nix" "${modules-dir}/zsh.nix"
"${modules-dir}/display-managers/lightdm.nix" "${modules-dir}/display-managers/lightdm.nix"
#"${modules-dir}/desktop-environments/gnome.nix" #"${modules-dir}/desktop-environments/gnome.nix"
@@ -24,17 +22,8 @@ in {
stylix.image = ../../assets/wallpapers/kitagawa.jpg; stylix.image = ../../assets/wallpapers/kitagawa.jpg;
stylix.polarity = "dark"; stylix.polarity = "dark";
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;
programs.gnupg.agent = {
enable = true;
}; };
services.fprintd.enable = true; services.fprintd.enable = true;
+1 -1
View File
@@ -9,7 +9,7 @@ global-configs = ../../global-configs;
in { in {
imports = [ imports = [
../../global-home.nix ../../global-home.nix
"${global-configs}/fastfetch.nix" ./configs/fastfetch.nix
"${global-configs}/zsh.nix" "${global-configs}/zsh.nix"
"${global-configs}/kitty.nix" "${global-configs}/kitty.nix"
"${global-configs}/floorp.nix" "${global-configs}/floorp.nix"
-15
View File
@@ -12,29 +12,14 @@ in {
imports = [ imports = [
../../global-default.nix ../../global-default.nix
./hardware-configuration.nix ./hardware-configuration.nix
"${modules-dir}/nh.nix"
"${modules-dir}/display-managers/sddm.nix" "${modules-dir}/display-managers/sddm.nix"
"${modules-dir}/desktop-environments/plasma6.nix" "${modules-dir}/desktop-environments/plasma6.nix"
"${modules-dir}/home-manager.nix"
"${modules-dir}/zsh.nix" "${modules-dir}/zsh.nix"
]; ];
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
virtualisation.virtualbox.guest.enable = true; virtualisation.virtualbox.guest.enable = true;
virtualisation.virtualbox.guest.dragAndDrop = true; virtualisation.virtualbox.guest.dragAndDrop = true;
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;
programs.gnupg.agent = {
enable = true;
};
# List services that you want to enable: # List services that you want to enable:
# Enable the OpenSSH daemon. # Enable the OpenSSH daemon.
-2
View File
@@ -1,8 +1,6 @@
{ {
config, config,
pkgs, pkgs,
inputs,
lib,
... ...
}: let }: let
global-configs = ../../global-configs; global-configs = ../../global-configs;
+12
View File
@@ -0,0 +1,12 @@
{
pkgs,
...
}: {
imports = [
../../../global-configs/kitty.nix
];
programs.kitty = {
themeFile = "Arthur";
};
}
+21 -100
View File
@@ -1,104 +1,25 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{ {
imports = config,
[ # Include the results of the hardware scan. pkgs,
./hardware-configuration.nix ...
../../flakes/nh.nix }: let
modules-dir = ../../modules;
in {
imports = [
../../global-default.nix
./hardware-configuration.nix
"${modules-dir}/display-managers/sddm.nix"
"${modules-dir}/desktop-environments/plasma6.nix"
"${modules-dir}/zsh.nix"
];
programs.gamemode.enable = true;
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
extraCompatPackages = with pkgs; [
proton-ge-bin
]; ];
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "nixos-vm"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Enable networking
networking.networkmanager.enable = true;
# Set your time zone.
time.timeZone = "Europe/London";
# Select internationalisation properties.
i18n.defaultLocale = "en_GB.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "en_GB.UTF-8";
LC_IDENTIFICATION = "en_GB.UTF-8";
LC_MEASUREMENT = "en_GB.UTF-8";
LC_MONETARY = "en_GB.UTF-8";
LC_NAME = "en_GB.UTF-8";
LC_NUMERIC = "en_GB.UTF-8";
LC_PAPER = "en_GB.UTF-8";
LC_TELEPHONE = "en_GB.UTF-8";
LC_TIME = "en_GB.UTF-8";
}; };
# Configure keymap in X11
services.xserver.xkb = {
layout = "gb";
variant = "";
};
# Configure console keymap
console.keyMap = "uk";
# Define a user account. Don't forget to set a password with ‘passwd’.
users.users."grey" = {
isNormalUser = true;
description = "grey";
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [];
};
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
# wget
];
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;
# programs.gnupg.agent = {
# enable = true;
# enableSSHSupport = true;
# };
# List services that you want to enable:
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. It‘s perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "26.05"; # Did you read the comment?
} }
+36
View File
@@ -0,0 +1,36 @@
{
config,
pkgs,
...
}: let
global-configs = ../../global-configs;
in {
imports = [
../../global-home.nix
"${global-configs}/plasma.nix"
"${global-configs}/fastfetch.nix"
"${global-configs}/zen-browser.nix"
"${global-configs}/zsh.nix"
./configs/kitty.nix
];
home.packages = with pkgs; [
equibop
prismlauncher
obsidian
github-desktop
vscode
thunderbird
spotify
unityhub
godot
jetbrains.clion
jetbrains.idea
obs-studio
proton-vpn
ente-auth
lact
winetricks
protontricks
];
}