Compare commits

...

15 Commits

Author SHA1 Message Date
b65bf47e90 flake: inline dependencies 2026-01-08 06:12:50 -05:00
ae0c0f0914 update 2026-01-07 14:18:46 -05:00
507ec8ffd9 update 2026-01-05 16:59:13 -05:00
6c96ba0e0f wifi: re-enable wifi power savings 2025-12-29 15:28:28 -05:00
67102b0967 wifi: move to ensureProfiles 2025-12-29 15:28:04 -05:00
2fc8710264 update 2025-12-29 14:40:05 -05:00
c5c0b7b797 update 2025-12-26 14:00:24 -05:00
fd58681a07 initrd: migrate to systemd-initrd 2025-12-25 04:19:35 -05:00
1d6b1fb341 llama-cpp: remove 2025-12-25 04:00:17 -05:00
6edbeb167b opencode: move to glm 4.7 (free) 2025-12-25 03:59:31 -05:00
fecc2d8652 update 2025-12-25 03:11:44 -05:00
5419adee40 update 2025-12-24 08:00:19 -05:00
9132392d92 fix mullvad version mismatch 2025-12-24 03:05:23 -05:00
9bb15ae4d2 llama.cpp things 2025-12-24 03:00:28 -05:00
8708d16dac update 2025-12-21 22:04:20 -05:00
7 changed files with 86 additions and 148 deletions

159
flake.lock generated
View File

@@ -9,11 +9,11 @@
"systems": "systems_2" "systems": "systems_2"
}, },
"locked": { "locked": {
"lastModified": 1763308703, "lastModified": 1767386128,
"narHash": "sha256-O9Y+Wer8wOh+N+4kcCK5p/VLrXyX+ktk0/s3HdZvJzk=", "narHash": "sha256-BJDu7dIMauO2nYRSL4aI8wDNtEm2KOb7lDKP3hxdrpo=",
"owner": "numtide", "owner": "numtide",
"repo": "blueprint", "repo": "blueprint",
"rev": "5a9bba070f801d63e2af3c9ef00b86b212429f4f", "rev": "0ed984d51a3031065925ab08812a5434f40b93d4",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -24,11 +24,11 @@
}, },
"crane": { "crane": {
"locked": { "locked": {
"lastModified": 1765739568, "lastModified": 1767461147,
"narHash": "sha256-gQYx35Of4UDKUjAYvmxjUEh/DdszYeTtT6MDin4loGE=", "narHash": "sha256-TH/xTeq/RI+DOzo+c+4F431eVuBpYVwQwBxzURe7kcI=",
"owner": "ipetkov", "owner": "ipetkov",
"repo": "crane", "repo": "crane",
"rev": "67d2baff0f9f677af35db61b32b5df6863bcc075", "rev": "7d59256814085fd9666a2ae3e774dc5ee216b630",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -83,11 +83,11 @@
"doomemacs": { "doomemacs": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1765960743, "lastModified": 1767773143,
"narHash": "sha256-zR+EfDMcyAWPSkkXauzaEcbzsKUoDMwNVVtJvsQSXqo=", "narHash": "sha256-QL/t9v2kFNxBDyNJb/s411o3mxujan+QX5IZglTdpTk=",
"owner": "doomemacs", "owner": "doomemacs",
"repo": "doomemacs", "repo": "doomemacs",
"rev": "0dfb874b57690dbbddd8167792de5ea9ff9a7d76", "rev": "3e15fb36d7f94f0a218bda977be4d3f5da983a71",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -106,11 +106,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1766195763, "lastModified": 1767863967,
"narHash": "sha256-lplNDhZG8lf9o2ZFyOHVxjSnYs4M+bmSbzEhrnNm4LY=", "narHash": "sha256-Yr4d2RRrnz1H1XE4gFYV9gXTXL/WEM8YguLHvtK3Oxs=",
"owner": "nix-community", "owner": "nix-community",
"repo": "emacs-overlay", "repo": "emacs-overlay",
"rev": "f4ad950dd72c8eb510de4887d52b620d1fe7a96e", "rev": "2bb26f2f973bfbb0bf127ff8d1ff5f0a12c0a355",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -138,15 +138,15 @@
"flake-compat_2": { "flake-compat_2": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1761588595, "lastModified": 1767039857,
"narHash": "sha256-XKUZz9zewJNUj46b4AJdiRZJAvSZ0Dqj2BNfXvFlJC4=", "narHash": "sha256-vNpUSpF5Nuw8xvDLj2KCwwksIbjua2LZCqhV1LNRDns=",
"owner": "edolstra", "owner": "NixOS",
"repo": "flake-compat", "repo": "flake-compat",
"rev": "f387cd2afec9419c8ee37694406ca490c3f34ee5", "rev": "5edf11c44bc78a0d334f6334cdaf7d60d732daab",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "edolstra", "owner": "NixOS",
"repo": "flake-compat", "repo": "flake-compat",
"type": "github" "type": "github"
} }
@@ -180,11 +180,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1766171975, "lastModified": 1767864335,
"narHash": "sha256-47Ee0bTidhF/3/sHuYnWRuxcCrrm0mBNDxBkOTd3wWQ=", "narHash": "sha256-2L1hc/V2oHMVsAKxyCoSD0q5lL2ap7MR8pk9U2YB9gs=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "bb35f07cc95a73aacbaf1f7f46bb8a3f40f265b5", "rev": "af7f14ddf770e269bb67cea19708198e618b5c75",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -194,12 +194,20 @@
} }
}, },
"impermanence": { "impermanence": {
"inputs": {
"home-manager": [
"home-manager"
],
"nixpkgs": [
"nixpkgs"
]
},
"locked": { "locked": {
"lastModified": 1737831083, "lastModified": 1767822991,
"narHash": "sha256-LJggUHbpyeDvNagTUrdhe/pRVp4pnS6wVKALS782gRI=", "narHash": "sha256-iyrn9AcPZCoyxX4OT8eMkBsjG7SRUQXXS/V1JzxS7rA=",
"owner": "nix-community", "owner": "nix-community",
"repo": "impermanence", "repo": "impermanence",
"rev": "4b3e914cdf97a5b536a889e939fb2fd2b043a170", "rev": "82e5bc4508cab9e8d5a136626276eb5bbce5e9c5",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -216,11 +224,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1766137899, "lastModified": 1767777502,
"narHash": "sha256-G4UMKyt6iLlK3eeFQuIKKG+9FwattDMmtYsoF0+b4zk=", "narHash": "sha256-jXb2kBU6lO6Q6S9zoR/bhVLMjg2hM9EW8gWIwsmkj64=",
"owner": "Jovian-Experiments", "owner": "Jovian-Experiments",
"repo": "Jovian-NixOS", "repo": "Jovian-NixOS",
"rev": "d9879776a2ba5def8cf5e73c05b3f62563f77a71", "rev": "a81fad3f4a70fdaa779e74b7da2063fa2e358028",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -236,14 +244,16 @@
"nixpkgs" "nixpkgs"
], ],
"pre-commit": "pre-commit", "pre-commit": "pre-commit",
"rust-overlay": "rust-overlay" "rust-overlay": [
"rust-overlay"
]
}, },
"locked": { "locked": {
"lastModified": 1766146127, "lastModified": 1767697030,
"narHash": "sha256-6bA+9FNE7bWOUanW6Mujcbzhm9A74dCTUBX5/bA0RVQ=", "narHash": "sha256-0iVZ99H3kR5h6Lhw8kDDuUc5C/k6iismeWgCS1qWTQ4=",
"owner": "nix-community", "owner": "nix-community",
"repo": "lanzaboote", "repo": "lanzaboote",
"rev": "b8c5ab2bd227f840bc8e1944631fe718b19c3336", "rev": "657469e8f036334db768daaf7732b1174676054b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -261,11 +271,11 @@
"treefmt-nix": "treefmt-nix" "treefmt-nix": "treefmt-nix"
}, },
"locked": { "locked": {
"lastModified": 1766209986, "lastModified": 1767866249,
"narHash": "sha256-z7O0jxXUC+M8ALwKqyx7s1HfYXM74af4jBJCgPaYZfE=", "narHash": "sha256-34M8rysW3vuOYijI/Ns59bPkKPecaQW5oOupR45IRwQ=",
"owner": "numtide", "owner": "numtide",
"repo": "llm-agents.nix", "repo": "llm-agents.nix",
"rev": "21a32502df27ce76bf199415c01e6e4af88a3504", "rev": "7173b37ee4ff714e34dab539aeccb0cc7e4b24dc",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -288,11 +298,11 @@
"xwayland-satellite-unstable": "xwayland-satellite-unstable" "xwayland-satellite-unstable": "xwayland-satellite-unstable"
}, },
"locked": { "locked": {
"lastModified": 1766209779, "lastModified": 1767833217,
"narHash": "sha256-aYOnrT1M5xxqn1Ka66jh9JspE9GejyX16bgA2Fex9dQ=", "narHash": "sha256-HLr9k8g1Geq40PLsNw7I5N8TZkBYtQVjkgDPV/Kehxk=",
"owner": "sodiboo", "owner": "sodiboo",
"repo": "niri-flake", "repo": "niri-flake",
"rev": "3a174fe817fc39f09267a464d0ba93606aac7277", "rev": "a789aa1512a9157d5d3392b27e60621fd0d83438",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -321,11 +331,11 @@
"niri-unstable": { "niri-unstable": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1766207058, "lastModified": 1767792726,
"narHash": "sha256-7E45lo+Yt4zaOlrCQWGSGwvFKzS5MxlP0gPCkggy+8w=", "narHash": "sha256-qS4tdG2iUQwSld9dTH1gk8GcIOrRi9umMgPv8MGDIA0=",
"owner": "YaLTeR", "owner": "YaLTeR",
"repo": "niri", "repo": "niri",
"rev": "7a237e519c69ec493851ffac169abb3aa917a7b3", "rev": "10df9f4717cbd4efd20ae796eb6b0aa400127bdc",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -346,11 +356,11 @@
"systems": "systems_3" "systems": "systems_3"
}, },
"locked": { "locked": {
"lastModified": 1766047659, "lastModified": 1767862133,
"narHash": "sha256-8jebwDZJbJ7rnZ7lJR22m9WsJk6ZPJtozK6HxpNeAEg=", "narHash": "sha256-wxs62H8lxO+5FH+8JfJMwZyg4Yx3HwY67QSLwYi/olw=",
"owner": "marienz", "owner": "marienz",
"repo": "nix-doom-emacs-unstraightened", "repo": "nix-doom-emacs-unstraightened",
"rev": "d53bcf25afb8d0cc056217a85dc4cc07d639cc88", "rev": "6337dd4ccf780724ea6e8adbf1c721fef7515ae3",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -398,11 +408,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1764440730, "lastModified": 1767185284,
"narHash": "sha256-ZlJTNLUKQRANlLDomuRWLBCH5792x+6XUJ4YdFRjtO4=", "narHash": "sha256-ljDBUDpD1Cg5n3mJI81Hz5qeZAwCGxon4kQW3Ho3+6Q=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "9154f4569b6cdfd3c595851a6ba51bfaa472d9f3", "rev": "40b1a28dce561bea34858287fbb23052c3ee63fe",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -414,11 +424,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1766070988, "lastModified": 1767767207,
"narHash": "sha256-G/WVghka6c4bAzMhTwT2vjLccg/awmHkdKSd2JrycLc=", "narHash": "sha256-Mj3d3PfwltLmukFal5i3fFt27L6NiKXdBezC1EBuZs4=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "c6245e83d836d0433170a16eb185cefe0572f8b8", "rev": "5912c1772a44e31bf1c63c0390b90501e5026886",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -438,11 +448,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1765464257, "lastModified": 1767281941,
"narHash": "sha256-dixPWKiHzh80PtD0aLuxYNQ0xP+843dfXG/yM3OzaYQ=", "narHash": "sha256-6MkqajPICgugsuZ92OMoQcgSHnD6sJHwk8AxvMcIgTE=",
"owner": "cachix", "owner": "cachix",
"repo": "pre-commit-hooks.nix", "repo": "pre-commit-hooks.nix",
"rev": "09e45f2598e1a8499c3594fe11ec2943f34fe509", "rev": "f0927703b7b1c8d97511c4116eb9b4ec6645a0fa",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -466,43 +476,22 @@
"nix-flatpak": "nix-flatpak", "nix-flatpak": "nix-flatpak",
"nixos-hardware": "nixos-hardware", "nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"rust-overlay": "rust-overlay_2", "rust-overlay": "rust-overlay",
"zen-browser": "zen-browser" "zen-browser": "zen-browser"
} }
}, },
"rust-overlay": { "rust-overlay": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
"lanzaboote",
"nixpkgs" "nixpkgs"
] ]
}, },
"locked": { "locked": {
"lastModified": 1765680428, "lastModified": 1767840362,
"narHash": "sha256-fyPmRof9SZeI14ChPk5rVPOm7ISiiGkwGCunkhM+eUg=", "narHash": "sha256-ZtsFqUhilubohNZ1TgpQIFsi4biZTwRH9rjZsDRDik8=",
"owner": "oxalica", "owner": "oxalica",
"repo": "rust-overlay", "repo": "rust-overlay",
"rev": "eb3898d8ef143d4bf0f7f2229105fc51c7731b2f", "rev": "d159ea1fc321c60f88a616ac28bab660092a227d",
"type": "github"
},
"original": {
"owner": "oxalica",
"repo": "rust-overlay",
"type": "github"
}
},
"rust-overlay_2": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1766198367,
"narHash": "sha256-f1L1rCEu2Zew6zdiZ38jJDZd65ktE7UN+Gqn2LHPiFI=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "66bb33fdfb50b1ee724381c3f5d6012dac6c89b3",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -564,11 +553,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1766000401, "lastModified": 1767801790,
"narHash": "sha256-+cqN4PJz9y0JQXfAK5J1drd0U05D5fcAGhzhfVrDlsI=", "narHash": "sha256-QfX6g3Wj2vQe7oBJEbTf0npvC6sJoDbF9hb2+gM5tf8=",
"owner": "numtide", "owner": "numtide",
"repo": "treefmt-nix", "repo": "treefmt-nix",
"rev": "42d96e75aa56a3f70cab7e7dc4a32868db28e8fd", "rev": "778a1d691f1ef45dd68c661715c5bf8cbf131c80",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -615,11 +604,11 @@
"xwayland-satellite-unstable": { "xwayland-satellite-unstable": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1765935116, "lastModified": 1767830382,
"narHash": "sha256-lNyckAdrhNKXsi9pNOBYajntNFlWs+BITVoIZuNuwX0=", "narHash": "sha256-0PgS7M1SV6JCN3MugFZPaP8J+Mr2o7lSDFTPVYZSIAY=",
"owner": "Supreeeme", "owner": "Supreeeme",
"repo": "xwayland-satellite", "repo": "xwayland-satellite",
"rev": "979eab242e60cf481a31d9de508a1bdaf2dcf7d4", "rev": "74cf1a95a35fd7aec76432bc2cd9b310e0d908c5",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -638,11 +627,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1766204826, "lastModified": 1767763594,
"narHash": "sha256-NccmxYNOUHLLehsBLaeZ3QtVlDfIW1FDBe3W/kIDwa0=", "narHash": "sha256-5ysv8EuVAgDoYmNuXEUNf7vBzdeRaFxeIlIndv5HMvs=",
"owner": "0xc000022070", "owner": "0xc000022070",
"repo": "zen-browser-flake", "repo": "zen-browser-flake",
"rev": "4563d0ffdf586368f1bec1a39cc20c9b12b73884", "rev": "8b2302d8c10369c9135552cc892da75cff5ddb03",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -7,6 +7,7 @@
lanzaboote = { lanzaboote = {
url = "github:nix-community/lanzaboote"; url = "github:nix-community/lanzaboote";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
inputs.rust-overlay.follows = "rust-overlay";
}; };
nixos-hardware.url = "github:NixOS/nixos-hardware/master"; nixos-hardware.url = "github:NixOS/nixos-hardware/master";
@@ -54,6 +55,8 @@
impermanence = { impermanence = {
url = "github:nix-community/impermanence"; url = "github:nix-community/impermanence";
inputs.nixpkgs.follows = "nixpkgs";
inputs.home-manager.follows = "home-manager";
}; };
deploy-rs = { deploy-rs = {

View File

@@ -24,7 +24,7 @@
## Behavior ## Behavior
Do not be sycophantic in your responses. Do not be sycophantic in your responses.
Do not use emojis unless explicitly asked to. This includes in code. Do not use emojis unless explicitly asked to. This includes in code.
ALWAYS test code before returning to the user with something you think works. Always verify your work. Use Test Driven Development methodology.
## Nix ## Nix
For using `nix build` append `-L` to get better visibility into the logs. For using `nix build` append `-L` to get better visibility into the logs.
@@ -33,19 +33,17 @@
settings = { settings = {
theme = "opencode"; theme = "opencode";
model = "openrouter/mistralai/devstral-2512:free"; model = "z-ai/glm-4.7";
# small model used for titles # small model used for titles
small_model = "openrouter/openai/gpt-oss-20b:free"; small_model = "openrouter/openai/gpt-oss-20b:free";
autoshare = false; autoshare = false;
autoupdate = true; autoupdate = true;
agent = { agent = { };
};
provider = { provider = {
openrouter = { openrouter = {
models = { models = {
"openai/gpt-oss-20b:free" = { }; "openai/gpt-oss-20b:free" = { };
"mistralai/devstral-2512:free" = { };
}; };
options = { options = {
# TODO! use agenix here instead # TODO! use agenix here instead

View File

@@ -11,7 +11,6 @@
}: }:
{ {
imports = [ imports = [
./declarative-nm.nix
# ./vm.nix # ./vm.nix
./steam.nix ./steam.nix
./networking.nix ./networking.nix
@@ -110,6 +109,7 @@
}; };
initrd = { initrd = {
systemd.enable = true;
compressor = "zstd"; compressor = "zstd";
availableKernelModules = [ availableKernelModules = [
"xhci_pci" "xhci_pci"
@@ -223,8 +223,6 @@
services.gvfs.enable = true; services.gvfs.enable = true;
programs.gphoto2.enable = true; programs.gphoto2.enable = true;
programs.adb.enable = true;
# Enable thermal data # Enable thermal data
services.thermald.enable = true; services.thermald.enable = true;
@@ -237,7 +235,7 @@
# System packages # System packages
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
mullvad-vpn # mullvad-vpn is provided by services.mullvad-vpn.enable
#secureboot ctl #secureboot ctl
sbctl sbctl
@@ -256,6 +254,7 @@
git git
tmux tmux
android-tools
]; ];
# wayland with electron/chromium applications # wayland with electron/chromium applications

View File

@@ -1,51 +0,0 @@
{
config,
lib,
pkgs,
...
}:
# from: https://discourse.nixos.org/t/imperative-declarative-wifi-networks-with-wpa-supplicant/12394/6
let
cfg = config.networking.networkmanager;
getFileName = lib.stringAsChars (x: if x == " " then "-" else x);
createWifi = ssid: opt: {
name = "NetworkManager/system-connections/${getFileName ssid}.nmconnection";
value = {
mode = "0400";
source = pkgs.writeText "${ssid}.nmconnection" ''
[connection]
id=${ssid}
type=wifi
[wifi]
ssid=${ssid}
[wifi-security]
${lib.optionalString (opt.psk != null) ''
key-mgmt=wpa-psk
psk=${opt.psk}''}
'';
};
};
keyFiles = lib.mapAttrs' createWifi config.networking.wireless.networks;
in
{
config = lib.mkIf cfg.enable {
environment.etc = keyFiles;
systemd.services.NetworkManager-predefined-connections = {
restartTriggers = lib.mapAttrsToList (name: value: value.source) keyFiles;
serviceConfig = {
Type = "oneshot";
RemainAfterExit = true;
ExecStart = "${pkgs.coreutils}/bin/true";
ExecReload = "${pkgs.networkmanager}/bin/nmcli connection reload";
};
reloadIfChanged = true;
wantedBy = [ "multi-user.target" ];
};
};
}

View File

@@ -17,10 +17,10 @@
wifi = { wifi = {
scanRandMacAddress = true; scanRandMacAddress = true;
# fix suspend issue # fix suspend issue
powersave = false; # powersave = false;
};
}; };
wireless.networks = import ./secrets/wifi-passwords.nix; ensureProfiles.profiles = import ./secrets/wifi-passwords.nix;
};
}; };
} }

Binary file not shown.