Compare commits

..

1 commit

Author SHA1 Message Date
Jet
d19cb7af75
update: nfu 2026-03-19 21:35:39 -07:00
4 changed files with 31 additions and 35 deletions

View file

@ -3,8 +3,3 @@
I've done nixos a few times but this time around it's been very comfterable. Nothing is really that special about it, but feel free to copy it! I've done nixos a few times but this time around it's been very comfterable. Nothing is really that special about it, but feel free to copy it!
> silly language thing creddited to https://github.com/SylvanFranklin/.config > silly language thing creddited to https://github.com/SylvanFranklin/.config
This flake currently defines one host: `framework` which is my laptop.
- system config lives in `configuration.nix`
- Home Manager config lives in `home.nix`

View file

@ -90,11 +90,6 @@
AttrKeyboardIntegration=internal AttrKeyboardIntegration=internal
''; '';
# Codex currently probes the conventional FHS bubblewrap path.
systemd.tmpfiles.rules = [
"L+ /usr/bin/bwrap - - - - ${pkgs.bubblewrap}/bin/bwrap"
];
# Set Kitty as default terminal # Set Kitty as default terminal
xdg.terminal-exec = { xdg.terminal-exec = {
enable = true; enable = true;
@ -159,20 +154,11 @@
"nix-command" "nix-command"
"flakes" "flakes"
]; ];
trusted-users = [ auto-optimise-store = true;
"root"
"jet"
];
max-jobs = "auto"; max-jobs = "auto";
cores = 0; cores = 0;
build-users-group = "nixbld"; build-users-group = "nixbld";
}; };
nix.gc = {
automatic = true;
dates = "daily";
options = "--delete-older-than 7d";
};
nix.optimise.automatic = true;
# Framework-specific services # Framework-specific services
# Enable fwupd for BIOS updates (distributed through LVFS) # Enable fwupd for BIOS updates (distributed through LVFS)
@ -183,6 +169,24 @@
services.irqbalance.enable = true; services.irqbalance.enable = true;
services.earlyoom.enable = true; services.earlyoom.enable = true;
# Keep only last 3 generations, GC everything else (daily)
systemd.services.nix-cleanup = {
description = "Nix generation cleanup and garbage collection";
serviceConfig.Type = "oneshot";
script = ''
${pkgs.nix}/bin/nix-env --delete-generations +3 -p /nix/var/nix/profiles/system
${pkgs.nix}/bin/nix-env --delete-generations +3 -p /nix/var/nix/profiles/per-user/jet/home-manager || true
${pkgs.nix}/bin/nix-store --gc
'';
};
systemd.timers.nix-cleanup = {
wantedBy = [ "timers.target" ];
timerConfig = {
OnCalendar = "daily";
Persistent = true;
};
};
# Power management for laptop # Power management for laptop
services.logind = { services.logind = {
settings = { settings = {
@ -244,7 +248,6 @@
}; };
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
bubblewrap
wget wget
nh nh
]; ];

24
flake.lock generated
View file

@ -7,11 +7,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1774047888, "lastModified": 1773961488,
"narHash": "sha256-lUJ5dPga70KM1oj5vFEZm15PbojyrZ2nqJQ3C4bRSiY=", "narHash": "sha256-ZtxbClUigYKkJDOa9vdvW8Z6zmdiRaUuFmuIpQYX47g=",
"owner": "ryoppippi", "owner": "ryoppippi",
"repo": "claude-code-overlay", "repo": "claude-code-overlay",
"rev": "076a658308611db196d1a250d6fd7fe35ce620ad", "rev": "4e2e06ae0e7fb4d0f5c03b0bb041414f56d3bd9c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -87,11 +87,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1774007980, "lastModified": 1773962693,
"narHash": "sha256-FOnZjElEI8pqqCvB6K/1JRHTE8o4rer8driivTpq2uo=", "narHash": "sha256-nf9pgktDE4E2TCavUT1vh3Nd/tfKixL1BK6P32Zp3hI=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "9670de2921812bc4e0452f6e3efd8c859696c183", "rev": "9d3c1d636e7b8ab10f357cd9bee653cd400437de",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -143,11 +143,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1774018263, "lastModified": 1773533765,
"narHash": "sha256-HHYEwK1A22aSaxv2ibhMMkKvrDGKGlA/qObG4smrSqc=", "narHash": "sha256-qonGfS2lzCgCl59Zl63jF6dIRRpvW3AJooBGMaXjHiY=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "2d4b4717b2534fad5c715968c1cece04a172b365", "rev": "f8e82243fd601afb9f59ad230958bd073795cbfe",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -180,11 +180,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1774067251, "lastModified": 1773979768,
"narHash": "sha256-kxPPIRaJsxGcPRUOO2sUbvloaVdRiSDD0cN2Fxoj7pg=", "narHash": "sha256-Xwkgi1TwlKEkYh4itTOBEsVjliu6yrm/rCVy7Z0gjCA=",
"owner": "nix-community", "owner": "nix-community",
"repo": "NUR", "repo": "NUR",
"rev": "83ab96ae446c783b0dcf20b7eff35cf293faa0d4", "rev": "13a1826d73d837d7100673a21436dcf4885c80bf",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -85,7 +85,6 @@ in
bat bat
ffmpeg-full ffmpeg-full
claude-code claude-code
opencode
inputs.codex-cli-nix.packages.${pkgs.stdenv.hostPlatform.system}.default inputs.codex-cli-nix.packages.${pkgs.stdenv.hostPlatform.system}.default
fd fd
btop btop
@ -252,7 +251,6 @@ in
"da" = "direnv allow"; "da" = "direnv allow";
"nfu" = "nix flake update"; "nfu" = "nix flake update";
"c" = "claude"; "c" = "claude";
"o" = "opencode";
".." = "z .."; ".." = "z ..";
j = "jj"; j = "jj";
jgf = "jj git fetch"; jgf = "jj git fetch";