Compare commits

..

7 Commits

Author SHA1 Message Date
k
6b669988f0 clean up
Some checks failed
Verify Nix Flake / verify_build (push) Failing after 56s
2026-01-28 01:02:43 -05:00
k
ae74da869a update flake 2026-01-28 01:02:43 -05:00
k
f8eccabdb3 Updated formating 2026-01-28 01:02:43 -05:00
k
07fd3a6afc Changed colors 2026-01-28 01:02:43 -05:00
k
64e97bd330 Changed to niri 2026-01-28 01:02:43 -05:00
k
52569da057 Merge branch 'master' of https://git.dhilton.xyz/k/nixos_configs
Some checks failed
Verify Nix Flake / verify_build (push) Failing after 1m11s
2025-12-20 02:34:03 +00:00
k
b7ff106a25 disabled homeassistent 2025-12-20 02:33:57 +00:00
7 changed files with 112 additions and 98 deletions

86
flake.lock generated
View File

@@ -21,17 +21,17 @@
"base16-fish": { "base16-fish": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1754405784, "lastModified": 1765809053,
"narHash": "sha256-l9xHIy+85FN+bEo6yquq2IjD1rSg9fjfjpyGP1W8YXo=", "narHash": "sha256-XCUQLoLfBJ8saWms2HCIj4NEN+xNsWBlU1NrEPcQG4s=",
"owner": "tomyun", "owner": "tomyun",
"repo": "base16-fish", "repo": "base16-fish",
"rev": "23ae20a0093dca0d7b39d76ba2401af0ccf9c561", "rev": "86cbea4dca62e08fb7fd83a70e96472f92574782",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "tomyun", "owner": "tomyun",
"repo": "base16-fish", "repo": "base16-fish",
"rev": "23ae20a0093dca0d7b39d76ba2401af0ccf9c561", "rev": "86cbea4dca62e08fb7fd83a70e96472f92574782",
"type": "github" "type": "github"
} }
}, },
@@ -71,11 +71,11 @@
"firefox-gnome-theme": { "firefox-gnome-theme": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1764724327, "lastModified": 1764873433,
"narHash": "sha256-OkFLrD3pFR952TrjQi1+Vdj604KLcMnkpa7lkW7XskI=", "narHash": "sha256-1XPewtGMi+9wN9Ispoluxunw/RwozuTRVuuQOmxzt+A=",
"owner": "rafaelmardojai", "owner": "rafaelmardojai",
"repo": "firefox-gnome-theme", "repo": "firefox-gnome-theme",
"rev": "66b7c635763d8e6eb86bd766de5a1e1fbfcc1047", "rev": "f7ffd917ac0d253dbd6a3bf3da06888f57c69f92",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -92,11 +92,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1763759067, "lastModified": 1767609335,
"narHash": "sha256-LlLt2Jo/gMNYAwOgdRQBrsRoOz7BPRkzvNaI/fzXi2Q=", "narHash": "sha256-feveD98mQpptwrAEggBQKJTYbvwwglSbOv53uCfH9PY=",
"owner": "hercules-ci", "owner": "hercules-ci",
"repo": "flake-parts", "repo": "flake-parts",
"rev": "2cccadc7357c0ba201788ae99c4dfa90728ef5e0", "rev": "250481aafeb741edfe23d29195671c19b36b6dca",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -125,11 +125,11 @@
"flake": false, "flake": false,
"locked": { "locked": {
"host": "gitlab.gnome.org", "host": "gitlab.gnome.org",
"lastModified": 1764524476, "lastModified": 1767737596,
"narHash": "sha256-bTmNn3Q4tMQ0J/P0O5BfTQwqEnCiQIzOGef9/aqAZvk=", "narHash": "sha256-eFujfIUQDgWnSJBablOuG+32hCai192yRdrNHTv0a+s=",
"owner": "GNOME", "owner": "GNOME",
"repo": "gnome-shell", "repo": "gnome-shell",
"rev": "c0e1ad9f0f703fd0519033b8f46c3267aab51a22", "rev": "ef02db02bf0ff342734d525b5767814770d85b49",
"type": "gitlab" "type": "gitlab"
}, },
"original": { "original": {
@@ -145,11 +145,11 @@
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
}, },
"locked": { "locked": {
"lastModified": 1765170903, "lastModified": 1768949235,
"narHash": "sha256-O8VTGey1xxiRW+Fpb+Ps9zU7ShmxUA1a7cMTcENCVNg=", "narHash": "sha256-TtjKgXyg1lMfh374w5uxutd6Vx2P/hU81aEhTxrO2cg=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "20561be440a11ec57a89715480717baf19fe6343", "rev": "75ed713570ca17427119e7e204ab3590cc3bf2a5",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -161,11 +161,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1764440730, "lastModified": 1769302137,
"narHash": "sha256-ZlJTNLUKQRANlLDomuRWLBCH5792x+6XUJ4YdFRjtO4=", "narHash": "sha256-QEDtctEkOsbx8nlFh4yqPEOtr4tif6KTqWwJ37IM2ds=",
"owner": "nixos", "owner": "nixos",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "9154f4569b6cdfd3c595851a6ba51bfaa472d9f3", "rev": "a351494b0e35fd7c0b7a1aae82f0afddf4907aa8",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -177,11 +177,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1764831616, "lastModified": 1767799921,
"narHash": "sha256-OtzF5wBvO0jgW1WW1rQU9cMGx7zuvkF7CAVJ1ypzkxA=", "narHash": "sha256-r4GVX+FToWVE2My8VVZH4V0pTIpnu2ZE8/Z4uxGEMBE=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "c97c47f2bac4fa59e2cbdeba289686ae615f8ed4", "rev": "d351d0653aeb7877273920cd3e823994e7579b0b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -193,11 +193,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1764983851, "lastModified": 1769318308,
"narHash": "sha256-y7RPKl/jJ/KAP/VKLMghMgXTlvNIJMHKskl8/Uuar7o=", "narHash": "sha256-Mjx6p96Pkefks3+aA+72lu1xVehb6mv2yTUUqmSet6Q=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "d9bc5c7dceb30d8d6fafa10aeb6aa8a48c218454", "rev": "1cd347bf3355fce6c64ab37d3967b4a2cb4b878c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -209,11 +209,11 @@
}, },
"nixpkgs_3": { "nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1764522689, "lastModified": 1767799921,
"narHash": "sha256-SqUuBFjhl/kpDiVaKLQBoD8TLD+/cTUzzgVFoaHrkqY=", "narHash": "sha256-r4GVX+FToWVE2My8VVZH4V0pTIpnu2ZE8/Z4uxGEMBE=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "8bb5646e0bed5dbd3ab08c7a7cc15b75ab4e1d0f", "rev": "d351d0653aeb7877273920cd3e823994e7579b0b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -235,11 +235,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1764773531, "lastModified": 1767886815,
"narHash": "sha256-mCBl7MD1WZ7yCG6bR9MmpPO2VydpNkWFgnslJRIT1YU=", "narHash": "sha256-pB2BBv6X9cVGydEV/9Y8+uGCvuYJAlsprs1v1QHjccA=",
"owner": "nix-community", "owner": "nix-community",
"repo": "NUR", "repo": "NUR",
"rev": "1d9616689e98beded059ad0384b9951e967a17fa", "rev": "4ff84374d77ff62e2e13a46c33bfeb73590f9fef",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -275,11 +275,11 @@
"tinted-zed": "tinted-zed" "tinted-zed": "tinted-zed"
}, },
"locked": { "locked": {
"lastModified": 1765065096, "lastModified": 1769472288,
"narHash": "sha256-abrrONk8vzRtY6fHEkjZOyRJpKHjPlFqMBE0+/DxfAU=", "narHash": "sha256-RdnbroWsujYh1MaMhDpP5QM+bRIGG6smz987v1fli+U=",
"owner": "danth", "owner": "danth",
"repo": "stylix", "repo": "stylix",
"rev": "84d9d55885d463d461234f3aac07b2389a2577d8", "rev": "c2c4a3ad52c096db1c8dde97d3d21451613f000c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -340,11 +340,11 @@
"tinted-schemes": { "tinted-schemes": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1763914658, "lastModified": 1767817087,
"narHash": "sha256-Hju0WtMf3iForxtOwXqGp3Ynipo0EYx1AqMKLPp9BJw=", "narHash": "sha256-eGE8OYoK6HzhJt/7bOiNV2cx01IdIrHL7gXgjkHRdNo=",
"owner": "tinted-theming", "owner": "tinted-theming",
"repo": "schemes", "repo": "schemes",
"rev": "0f6be815d258e435c9b137befe5ef4ff24bea32c", "rev": "bd99656235aab343e3d597bf196df9bc67429507",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -356,11 +356,11 @@
"tinted-tmux": { "tinted-tmux": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1764465359, "lastModified": 1767489635,
"narHash": "sha256-lbSVPqLEk2SqMrnpvWuKYGCaAlfWFMA6MVmcOFJjdjE=", "narHash": "sha256-e6nnFnWXKBCJjCv4QG4bbcouJ6y3yeT70V9MofL32lU=",
"owner": "tinted-theming", "owner": "tinted-theming",
"repo": "tinted-tmux", "repo": "tinted-tmux",
"rev": "edf89a780e239263cc691a987721f786ddc4f6aa", "rev": "3c32729ccae99be44fe8a125d20be06f8d7d8184",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -372,11 +372,11 @@
"tinted-zed": { "tinted-zed": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1764464512, "lastModified": 1767488740,
"narHash": "sha256-rCD/pAhkMdCx6blsFwxIyvBJbPZZ1oL2sVFrH07lmqg=", "narHash": "sha256-wVOj0qyil8m+ouSsVZcNjl5ZR+1GdOOAooAatQXHbuU=",
"owner": "tinted-theming", "owner": "tinted-theming",
"repo": "base16-zed", "repo": "base16-zed",
"rev": "907dbba5fb8cf69ebfd90b00813418a412d0a29a", "rev": "11abb0b282ad3786a2aae088d3a01c60916f2e40",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -26,7 +26,6 @@
inputs.home-manager.nixosModules.default inputs.home-manager.nixosModules.default
inputs.stylix.nixosModules.stylix inputs.stylix.nixosModules.stylix
nixos-hardware.nixosModules.lenovo-thinkpad-x13-yoga nixos-hardware.nixosModules.lenovo-thinkpad-x13-yoga
(import ./overlays/ollama.nix)
]; ];
}; };
@@ -45,7 +44,6 @@
./hosts/server/configuration.nix ./hosts/server/configuration.nix
inputs.home-manager.nixosModules.default inputs.home-manager.nixosModules.default
nixos-hardware.nixosModules.system76 nixos-hardware.nixosModules.system76
(import ./overlays/ollama.nix)
]; ];
}; };

View File

@@ -99,7 +99,7 @@
"$mainMod, Return, exec, $terminal" "$mainMod, Return, exec, $terminal"
"$mainMod, D, exec, $menu" "$mainMod, D, exec, $menu"
"$mainMod Shift, C, killactive," "$mainMod Shift, C, killactive,"
"$mainMod, Space, exec, toggle_float" "$mainMod, Space, togglefloating"
"$mainMod, Escape, exec, ${pkgs.hyprlock}/bin/hyprlock" "$mainMod, Escape, exec, ${pkgs.hyprlock}/bin/hyprlock"
#emacs #emacs

17
hosts/home/niri.nix Normal file
View File

@@ -0,0 +1,17 @@
{
config,
pkgs,
inputs,
...
}: {
imports = [./waybar.nix ./tile.nix];
home.packages = with pkgs; [
pkgs.swaybg
pkgs.swayidle
pkgs.swaylock
pkgs.niri
pkgs.fuzzel
pkgs.iio-niri
pkgs.squeekboard
];
}

View File

@@ -4,7 +4,7 @@
inputs, inputs,
... ...
}: { }: {
imports = [./hardware-configuration.nix ]; imports = [./hardware-configuration.nix];
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
system.autoUpgrade.enable = true; system.autoUpgrade.enable = true;
@@ -38,23 +38,9 @@
firewall.enable = true; firewall.enable = true;
}; };
i18n = { i18n.defaultLocale = "en_US.UTF-8";
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";
};
};
services = { services = {
hardware.bolt = {enable = true;};
displayManager.ly = { displayManager.ly = {
enable = true; enable = true;
x11Support = false; x11Support = false;
@@ -62,9 +48,9 @@
animation = "colormix"; animation = "colormix";
battery_id = "BAT0"; battery_id = "BAT0";
clear_password = true; clear_password = true;
colormix_col1 = "0xA7C080"; colormix_col1 = "0xffffea";
colormix_col2 = "0x7FBBB3"; colormix_col2 = "0x006600";
colormix_col3 = "0xE67E80"; colormix_col3 = "0x8888cc";
}; };
}; };
pipewire = { pipewire = {
@@ -75,7 +61,7 @@
jack.enable = true; jack.enable = true;
}; };
auto-cpufreq = { auto-cpufreq = {
enable = false; enable = true;
settings = { settings = {
battery = { battery = {
governor = "powersave"; governor = "powersave";
@@ -91,12 +77,8 @@
lidSwitch = "suspend-then-hibernate"; lidSwitch = "suspend-then-hibernate";
lidSwitchExternalPower = "suspend"; lidSwitchExternalPower = "suspend";
}; };
avahi = {
enable = false;
nssmdns4 = true;
openFirewall = true;
};
hardware.bolt.enable = true;
blueman.enable = true; blueman.enable = true;
fwupd.enable = true; fwupd.enable = true;
printing.enable = true; printing.enable = true;
@@ -107,9 +89,28 @@
stylix = { stylix = {
enable = true; enable = true;
autoEnable = true; autoEnable = true;
polarity = "dark"; polarity = "light";
image = ./wallpaper.png; image = ./wallpaper.png;
base16Scheme = "${pkgs.base16-schemes}/share/themes/everforest.yaml"; base16Scheme = {
base00 = "#ffffea";
base01 = "#eaffff";
base02 = "#eeee9e";
base03 = "#99994c";
base04 = "#555555";
base05 = "#000000";
base06 = "#000000";
base07 = "#000000";
base08 = "#aa0000";
base09 = "#884400";
base0A = "#99994c";
base0B = "#006600";
base0C = "#8888cc";
base0D = "#000099";
base0E = "#8888cc";
base0F = "#5d3a1a";
};
targets.chromium.enable = false;
targets.gnome.enable = false;
opacity = { opacity = {
terminal = 0.85; terminal = 0.85;
popups = 0.75; popups = 0.75;
@@ -141,25 +142,14 @@
hardware = { hardware = {
sensor.iio.enable = true; sensor.iio.enable = true;
graphics.enable32Bit = true;
graphics.extraPackages = with pkgs; [
intel-vaapi-driver
intel-media-driver
intel-compute-runtime
];
}; };
programs = { programs = {
zsh.enable = true; zsh.enable = true;
virt-manager.enable = true; niri.enable = true;
hyprland = {
enable = true;
};
}; };
virtualisation = { virtualisation = {
libvirtd = {enable = true;};
kvmgt = {enable = true;};
docker = {enable = true;}; docker = {enable = true;};
}; };

View File

@@ -6,7 +6,7 @@
}: { }: {
imports = [ imports = [
../home/home_common.nix ../home/home_common.nix
../home/hyprland.nix ../home/niri.nix
]; ];
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
@@ -14,6 +14,7 @@
home = { home = {
packages = with pkgs; [ packages = with pkgs; [
firefox firefox
lagrange
chromium #this might replace firefox chromium #this might replace firefox
keepassxc keepassxc
thunderbird thunderbird
@@ -32,6 +33,8 @@
direnv direnv
texliveFull texliveFull
ispell ispell
calc
]; ];
}; };
@@ -44,7 +47,10 @@
emacs = { emacs = {
enable = true; enable = true;
package = pkgs.emacs-pgtk.override{withTreeSitter=true; withNativeCompilation=true;}; package = pkgs.emacs-pgtk.override {
withTreeSitter = true;
withNativeCompilation = true;
};
extraPackages = epkgs: [ extraPackages = epkgs: [
epkgs.vterm epkgs.vterm
]; ];
@@ -67,5 +73,6 @@
stylix = { stylix = {
enable = true; enable = true;
autoEnable = true; autoEnable = true;
targets.gnome.enable = false;
}; };
} }

View File

@@ -6,23 +6,25 @@
networking = { networking = {
firewall = { firewall = {
enable = true; enable = true;
allowedTCPPorts = [80 443 22 25565 26615 8080 53 19132 ]; allowedTCPPorts = [80 443 22 25565 26615 8080 53 19132];
allowedUDPPorts = [26615 8080 1900 51820 53 19132 ]; allowedUDPPorts = [26615 8080 1900 51820 53 19132];
}; };
nat.externalInterface = "wlp0s20f3"; nat.externalInterface = "wlp0s20f3";
nat.internalInterfaces = [ "wg0" ]; nat.internalInterfaces = ["wg0"];
wireguard.interfaces = { wireguard.interfaces = {
wg0 = { wg0 = {
ips = ["10.0.0.1/24"]; ips = ["10.0.0.1/24"];
listenPort = 51820; listenPort = 51820;
privateKeyFile = "/keys/wg-private"; privateKeyFile = "/keys/wg-private";
peers = [ peers = [
{ # laptop {
publicKey = "Ze2y3K+blI3aBc1AKTlvv90j+McBaitB+qSLazsuSFM="; # laptop
publicKey = "Ze2y3K+blI3aBc1AKTlvv90j+McBaitB+qSLazsuSFM=";
allowedIPs = ["10.0.0.2/32"]; allowedIPs = ["10.0.0.2/32"];
} }
{ # phone {
# phone
publicKey = "vcheBoHRxCrwzbMw0UI9ZsQfVDJizBWkeM+pF5/8+HE="; publicKey = "vcheBoHRxCrwzbMw0UI9ZsQfVDJizBWkeM+pF5/8+HE=";
allowedIPs = ["10.0.0.3/32"]; allowedIPs = ["10.0.0.3/32"];
} }
@@ -61,7 +63,7 @@
}; };
ollama = { ollama = {
enable = true; enable = false;
package = pkgs.ollama-intel; package = pkgs.ollama-intel;
}; };
@@ -94,7 +96,7 @@
}; };
home-assistant = { home-assistant = {
enable = true; enable = false;
extraComponents = ["wiz" "fail2ban" "ollama" "wyoming" "androidtv" "androidtv_remote"]; extraComponents = ["wiz" "fail2ban" "ollama" "wyoming" "androidtv" "androidtv_remote"];
config = { config = {
default_config = {}; default_config = {};
@@ -109,12 +111,12 @@
wyoming = { wyoming = {
piper.servers."piperNix" = { piper.servers."piperNix" = {
enable = true; enable = false;
uri = "tcp://0.0.0.0:10200"; uri = "tcp://0.0.0.0:10200";
voice = "en-us-ryan-low"; voice = "en-us-ryan-low";
}; };
faster-whisper.servers."whisperNix" = { faster-whisper.servers."whisperNix" = {
enable = true; enable = false;
uri = "tcp://0.0.0.0:10300"; uri = "tcp://0.0.0.0:10300";
language = "en"; language = "en";
}; };