Compare commits

...

4 Commits

Author SHA1 Message Date
3313cb76cb
enable kmscon 2025-11-14 12:08:53 -05:00
2993952882
eww: update bluetooth status command 2025-11-13 00:20:01 -05:00
06a7210579
opencode 2025-11-12 23:51:06 -05:00
8f0492f03b
25.05 -> unstable 2025-11-12 23:51:03 -05:00
10 changed files with 67 additions and 51 deletions

6
.gitattributes vendored
View File

@ -1,4 +1,2 @@
etcnixos/secrets/secureboot.tar filter=git-crypt diff=git-crypt /etcnixos/secrets/** filter=git-crypt diff=git-crypt
etcnixos/secrets/wifi-passwords.nix filter=git-crypt diff=git-crypt /home-manager/secrets/** filter=git-crypt diff=git-crypt
etcnixos/secrets/disk-password filter=git-crypt diff=git-crypt
etcnixos/secrets/password-hash filter=git-crypt diff=git-crypt

View File

@ -31,11 +31,13 @@
hardware.enableRedistributableFirmware = true; hardware.enableRedistributableFirmware = true;
hardware.cpu.amd.updateMicrocode = true; hardware.cpu.amd.updateMicrocode = true;
services.kmscon.enable = true;
services.greetd = { services.greetd = {
enable = true; enable = true;
settings = { settings = {
default_session = { default_session = {
command = "${lib.getExe pkgs.greetd.tuigreet} --time --cmd niri-session"; command = "${lib.getExe pkgs.tuigreet} --time --cmd niri-session";
user = username; user = username;
}; };
}; };

View File

@ -27,24 +27,6 @@
# PST # PST
# time.timeZone = lib.mkForce "America/Los_Angeles"; # time.timeZone = lib.mkForce "America/Los_Angeles";
services.greetd = {
enable = true;
settings = {
default_session = {
command = "${lib.getExe pkgs.greetd.tuigreet} --time --cmd niri-session";
user = username;
};
};
};
system.activationScripts = {
# FIX: https://github.com/NixOS/nix/issues/2982
"profile-channel-dummy".text = ''
#!/bin/sh
mkdir -p /nix/var/nix/profiles/per-user/root/channels
'';
};
# weird hack to get swaylock working? idk, if you don't put this here, password entry doesnt work # weird hack to get swaylock working? idk, if you don't put this here, password entry doesnt work
# if I move to another lock screen program, i will have to replace `swaylock` # if I move to another lock screen program, i will have to replace `swaylock`
security.pam.services.swaylock = { }; security.pam.services.swaylock = { };

33
flake.lock generated
View File

@ -62,11 +62,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1762938833, "lastModified": 1762997295,
"narHash": "sha256-DAyy8XG0qsbv6JZ+AXTcEA+b9W//pQnNQJBiOzdOO/0=", "narHash": "sha256-/4kxhVbD/wHVVg9B2srm1NzXEEmEI239JwMtyNYgZQQ=",
"owner": "nix-community", "owner": "nix-community",
"repo": "emacs-overlay", "repo": "emacs-overlay",
"rev": "d144aad6de2aeccf61ba8e3283059f95b93acb24", "rev": "4897d454109bd9965a8372363169a5b676753094",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -141,16 +141,15 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1758463745, "lastModified": 1762964643,
"narHash": "sha256-uhzsV0Q0I9j2y/rfweWeGif5AWe0MGrgZ/3TjpDYdGA=", "narHash": "sha256-RYHN8O/Aja59XDji6WSJZPkJpYVUfpSkyH+PEupBJqM=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "3b955f5f0a942f9f60cdc9cacb7844335d0f21c3", "rev": "827f2a23373a774a8805f84ca5344654c31f354b",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nix-community", "owner": "nix-community",
"ref": "release-25.05",
"repo": "home-manager", "repo": "home-manager",
"type": "github" "type": "github"
} }
@ -300,16 +299,16 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1762756533, "lastModified": 1762844143,
"narHash": "sha256-HiRDeUOD1VLklHeOmaKDzf+8Hb7vSWPVFcWwaTrpm+U=", "narHash": "sha256-SlybxLZ1/e4T2lb1czEtWVzDCVSTvk9WLwGhmxFmBxI=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "c2448301fb856e351aab33e64c33a3fc8bcf637d", "rev": "9da7f1cf7f8a6e2a7cb3001b048546c92a8258b4",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "NixOS", "owner": "NixOS",
"ref": "nixos-25.05", "ref": "nixos-unstable",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }
@ -362,11 +361,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1762915112, "lastModified": 1763001554,
"narHash": "sha256-d9j1g8nKmYDHy+/bIOPQTh9IwjRliqaTM0QLHMV92Ic=", "narHash": "sha256-wsfhRTuxu6f06RMmP4JWcq3wWRlmYtQaJZ6b3f+EJ94=",
"owner": "oxalica", "owner": "oxalica",
"repo": "rust-overlay", "repo": "rust-overlay",
"rev": "aa1e85921cfa04de7b6914982a94621fbec5cc02", "rev": "315d97eb753cee8e1aa039a5e622b84d32a454bb",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -433,11 +432,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1762903129, "lastModified": 1763007974,
"narHash": "sha256-4vxtwKSBiiJ950ccLo8kQvBGwyNjhglOgWI5b/sjGXY=", "narHash": "sha256-XMgjrDIHonLqIjc1eMQkLeemGcNqqYU0Dq+zNmeMYOI=",
"owner": "0xc000022070", "owner": "0xc000022070",
"repo": "zen-browser-flake", "repo": "zen-browser-flake",
"rev": "d03a5917aef22219df1f97b6da6fe5b8039be8de", "rev": "eff1c79c78950ebb4ce70c3d51513e294cf30b52",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -2,7 +2,7 @@
description = "System nixOS flake"; description = "System nixOS flake";
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
lanzaboote = { lanzaboote = {
url = "github:nix-community/lanzaboote"; url = "github:nix-community/lanzaboote";
@ -13,7 +13,7 @@
nixos-hardware.url = "github:NixOS/nixos-hardware/master"; nixos-hardware.url = "github:NixOS/nixos-hardware/master";
home-manager = { home-manager = {
url = "github:nix-community/home-manager/release-25.05"; url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };

View File

@ -62,7 +62,7 @@
#fonts #fonts
noto-fonts noto-fonts
noto-fonts-emoji noto-fonts-color-emoji
liberation_ttf liberation_ttf
#for ebook reading #for ebook reading

View File

@ -114,6 +114,7 @@ in
imports = [ imports = [
./progs/fish.nix ./progs/fish.nix
./progs/helix.nix ./progs/helix.nix
./progs/opencode.nix
( (
{ ... }: { ... }:
{ {
@ -157,7 +158,7 @@ in
ffmpeg-full ffmpeg-full
# microcontroller tooling # microcontroller tooling
probe-rs probe-rs-tools
(python312.withPackages ( (python312.withPackages (
ps: with ps; [ ps: with ps; [
@ -226,20 +227,19 @@ in
programs.git = { programs.git = {
enable = true; enable = true;
package = pkgs.git; package = pkgs.git;
userName = "Simon Gardling";
userEmail = "titaniumtown@proton.me";
# better way to view diffs
delta.enable = true;
lfs.enable = true; lfs.enable = true;
extraConfig = { settings = {
init = { init = {
# master -> main # master -> main
defaultBranch = "main"; defaultBranch = "main";
}; };
push.autoSetupRemote = true; push.autoSetupRemote = true;
user = {
name = "Simon Gardling";
email = "titaniumtown@proton.me";
};
}; };
# gpg signing keys # gpg signing keys
@ -248,4 +248,10 @@ in
signByDefault = true; signByDefault = true;
}; };
}; };
# better way to view diffs
programs.delta = {
enable = true;
enableGitIntegration = true;
};
} }

View File

@ -79,7 +79,7 @@
:text "${bluetooth-name} 󰂯"))) :text "${bluetooth-name} 󰂯")))
; `FNR == 1 + head -c 30` so the name doesn't explode the screen ; `FNR == 1 + head -c 30` so the name doesn't explode the screen
(defpoll bluetooth-name :interval "10s" `bluetoothctl devices Connected | awk 'FNR == 1 {print substr($0,1,30)}'`) (defpoll bluetooth-name :interval "10s" `bluetoothctl devices Connected | awk '$1 == "Device" {print $0}' | cut -d' ' -f3-`)
(defwidget time [] (defwidget time []
(box (box

View File

@ -0,0 +1,29 @@
{
config,
lib,
pkgs,
...
}:
{
programs.opencode = {
enable = true;
rules = "";
settings = {
theme = "opencode";
model = "moonshotai/kimi-k2-thinking";
autoshare = false;
autoupdate = true;
provider = {
openrouter = {
models = {
# put models here
};
options = {
# TODO! use agenix here instead
apiKey = "{file:${../secrets/openrouter_api_key}}";
};
};
};
};
};
}

Binary file not shown.