From 33c00528c2141816f9c79ffa3d56df15cc13278e Mon Sep 17 00:00:00 2001 From: chase Date: Fri, 13 Jun 2025 00:34:31 -0400 Subject: [PATCH 01/14] Added zsh --- home/base.nix | 40 ++++++++++++++++++++++++++++------------ nixos/base.nix | 19 +++++++++++++++++-- 2 files changed, 45 insertions(+), 14 deletions(-) diff --git a/home/base.nix b/home/base.nix index e60f095..7cbb05e 100644 --- a/home/base.nix +++ b/home/base.nix @@ -44,20 +44,36 @@ flavor = "mocha"; }; - programs.bash = { +# programs.bash = { +# enable = true; +# enableCompletion = true; +# historyIgnore = [ +# "ls" +# "ls -a" +# "ls -l" +# "ls -la" +# "cd" +# "exit" +# ]; +# }; + + programs.zsh = { enable = true; enableCompletion = true; - bashrcExtra = '' - export SSH_AUTH_SOCK=/home/chase/.bitwarden-ssh-agent.sock - ''; - historyIgnore = [ - "ls" - "ls -a" - "ls -l" - "ls -la" - "cd" - "exit" - ]; + enableBashCompletion = true; + autosuggestion.enable = true; + history = { + append = true; + extended = true; + ignoreDups = true; + ignorePatterns = [ + "ls *" + "cd *" + "gs" + "exit" + ]; + }; + syntaxHighlighting.enable = true; }; programs.bat.enable = true; diff --git a/nixos/base.nix b/nixos/base.nix index 9632c2d..89b8001 100644 --- a/nixos/base.nix +++ b/nixos/base.nix @@ -56,11 +56,11 @@ }; # Configure keymap - console.keyMap = "jp106"; + console.keyMap = lib.mkDefault "jp106"; services.xserver.xkb = { layout = lib.mkDefault "jp"; - model = "jp106"; + model = lib.mkDefault "jp106"; }; # Enable CUPS to print documents. @@ -80,6 +80,17 @@ blesh.enable = true; }; + # zsh config + programs.zsh = { + enable = true; + enableCompletion = true; + enableBashCompletion = true; + enableAutosuggestions = true; + syntaxHighlighting = { + enable = true; + }; + }; + # Define a user account users.users.chase = { isNormalUser = true; @@ -95,6 +106,10 @@ "video" "wheel" ]; + openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFSQX+s8Krl312DcnUtoEWOA2silcUnt5URtyVZz8Yek" + ]; + shell = pkgs.zsh; }; # Install git and enable cache From 53b357bae9dd6ab9f43ac7cd4e40023c4e2a51c7 Mon Sep 17 00:00:00 2001 From: chase Date: Fri, 13 Jun 2025 01:01:27 -0400 Subject: [PATCH 02/14] Add host key for kuromi --- .sops.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.sops.yaml b/.sops.yaml index dff78bf..36393a6 100644 --- a/.sops.yaml +++ b/.sops.yaml @@ -4,6 +4,7 @@ keys: - &hosts: - &anzu age1wdjujpvc2zd0g592a9gqa7qzz4pcans8m0tyq3m6eq9np9a3lg2s8kxf3h - &ichigo age1hpcyetyl0yrwxy0geem6z2u2kwl4hmckur7pnaaxwaylf8ata9vsv8j3wh + - &kuromi age1culqt965xgweu5h6menrppf7eatq7at04z0n52t365f0nvlv043su5t2yl creation_rules: - path_regex: secrets.yaml$ key_groups: @@ -11,3 +12,4 @@ creation_rules: - *chase - *anzu - *ichigo + - *kuromi From dad74bcb36a9b24af2b930521269403070925462 Mon Sep 17 00:00:00 2001 From: chase Date: Fri, 13 Jun 2025 01:10:19 -0400 Subject: [PATCH 03/14] 227 current 2025-06-13 01:09:57 25.11.20250607.3e3afe5 6.15.1 * --- home/base.nix | 25 ++++++++++++------------- nixos/base.nix | 1 + 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/home/base.nix b/home/base.nix index 7cbb05e..0f88eea 100644 --- a/home/base.nix +++ b/home/base.nix @@ -44,23 +44,22 @@ flavor = "mocha"; }; -# programs.bash = { -# enable = true; -# enableCompletion = true; -# historyIgnore = [ -# "ls" -# "ls -a" -# "ls -l" -# "ls -la" -# "cd" -# "exit" -# ]; -# }; + # programs.bash = { + # enable = true; + # enableCompletion = true; + # historyIgnore = [ + # "ls" + # "ls -a" + # "ls -l" + # "ls -la" + # "cd" + # "exit" + # ]; + # }; programs.zsh = { enable = true; enableCompletion = true; - enableBashCompletion = true; autosuggestion.enable = true; history = { append = true; diff --git a/nixos/base.nix b/nixos/base.nix index 89b8001..71f072a 100644 --- a/nixos/base.nix +++ b/nixos/base.nix @@ -178,6 +178,7 @@ qemu rustup sbctl + sops usbutils wget yubikey-manager From 8153599c99b91ef6acadbb7fce9de0757b6c1abb Mon Sep 17 00:00:00 2001 From: chase Date: Fri, 13 Jun 2025 01:11:51 -0400 Subject: [PATCH 04/14] Update secrets --- secrets.yaml | 39 ++++++++++++++++++++++++--------------- 1 file changed, 24 insertions(+), 15 deletions(-) diff --git a/secrets.yaml b/secrets.yaml index 477d010..1eed982 100644 --- a/secrets.yaml +++ b/secrets.yaml @@ -5,29 +5,38 @@ sops: - recipient: age19uwxm2gynhjl9m90gckrkh76m9hjut44ak6d8969y4swhz8ypyeqvfcaas enc: | -----BEGIN AGE ENCRYPTED FILE----- - YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBaKzlYVzI5U04xbU05L28z - ZGQvTG15T0t5dmgvbitxS204anBpMVROaGtvCkdJQlVmeGpCcjEyRlJRaWN6WEJv - eVJ2N0RmS2ZxMGNLTHd5bUxFY2ZmdEUKLS0tIGEvM2wzZE5yd3dvSk5KRGpQbU5C - dmh3d3RPbS9WSmF2bm12VHhwNUZ4SUEK0+efCtnuIIhotR92BNaEPyq5bGwadClp - pEf2CRhTaSGiPHK+VRDy1X+pW+q9Jxu5Z7jesjGLdH8ypW5lpYjc3Q== + YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBvT1pKc1VrVllURWozOXd1 + NURBT1haRlBkeHB3eTVabmhWMEI0a1JySDFjCkU3Ry9QaEpRTllaZlRZUllJOUtF + U0ZtOFJRbmEwYnFwK1JRNkJQQXlVVnMKLS0tIGRBZTloenV2YkhGMllUSEx5UGlk + emcvaGhuRStCRFBPY29UdmhPeUhqWDQKkabWErK0qtwVnWza7UfhmX9yfIZJC1XV + MOsdxHryfilLFHhzOI2UGM2dzKlukNvHwAuJmoRkwjIj8Ugj1sU3nA== -----END AGE ENCRYPTED FILE----- - recipient: age1wdjujpvc2zd0g592a9gqa7qzz4pcans8m0tyq3m6eq9np9a3lg2s8kxf3h enc: | -----BEGIN AGE ENCRYPTED FILE----- - YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSB2NGdjbm43T2NaK3krWmtB - eHJMK0xyZVFGWndabmJ5aDJiRm05dlJRUlJBClZJY2Zmc0xHUXFFbHJ0dEhDN1Zh - SVppL0pWRm9VbFBtempIRHQzOXR2dzgKLS0tIExxTFJMV2NBajdWNkRKSmR4YUFj - MVFubkgwWFJ2cEtWUVJCc2JvWU9NSGcKcsGs3q55cJ4dp1mdo7KOQWqF98uPsZOF - zFm7oJh6LwbHJarz2m3mlUGBded4ndYrsyJbh2NjHyfUvz2XZgZRkg== + YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBQbDBPVUFTcERIaEh4ZHp3 + aW1GQXlVQThyeDdVYzNYNHlqcFRIYVNpa2xNCmpMeml4REpsRDl1SU1pSm92SU1V + OXNhUklhTGxRMTRTV3dlbENsTVlXTVEKLS0tICtzU3ZteFNCOEo3NmVwNE1ydHVM + dFpJMXowc3h1MHdBYVZLc0Y5bXZoTUkKFs67JKeHhZiK2tAu7Poh4Fou5QYm8HXK + r09HeCuiIfxjRuT1t8nRvRALdzOG6xNuPULs6aCdjpa/d0EvnXyw+w== -----END AGE ENCRYPTED FILE----- - recipient: age1hpcyetyl0yrwxy0geem6z2u2kwl4hmckur7pnaaxwaylf8ata9vsv8j3wh enc: | -----BEGIN AGE ENCRYPTED FILE----- - YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBZWGNlNmdhVlRXRlN3OXo4 - dEVTL01uenhEY1VVMkRveGQrQXQ2TXlvSWpZCnRoVjI2TDRpbE1FVVNMTytMb3A2 - cjN0T2UyYm9idmg5dkdFUWp1a3ZHQXcKLS0tIFpnYS8veEVGMkFkMzlibHRUUUxF - TVpjTzArTkRGVFhHdzVHdWNSYm5EZjAK6iwQI8usDMhdHdphcJeoxeeidcbto1d0 - NFId4dYlrplJmkI7Og8bIxLqnaEw7enIsTz49LjLdKPRDfQB+PkEJw== + YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBmb3oyWFBvdXIxRkNtL0xs + aGNzQ0RERXB3TGFUOVBTQm5wOUlodkZiMXlvClFXR1Z0ZHpFa2RyUlYzL01Bb2RN + UGZNREVqRU9ZRVhMQ3VMYUNKcUI4WTgKLS0tIDB5RmkzSTdwSTVUQjJMbklxeFM5 + M0s3QmI4MzNiVy8yNGE2TG01Z1paOWcKIGj+ofrO443CiK1n3J291KwnKqmG99+M + 1mYfFrvpx/yVTzt2Pk5ioTC+hzDWUHy1gR8vQTVTjGkhU8cBCzNR/w== + -----END AGE ENCRYPTED FILE----- + - recipient: age1culqt965xgweu5h6menrppf7eatq7at04z0n52t365f0nvlv043su5t2yl + enc: | + -----BEGIN AGE ENCRYPTED FILE----- + YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBWOVQ2ZzhZT0pqZjIzQXp1 + dzBuVEcyYS9MSW8vdnFPT2p4NzJBZ3g2K0c4CmpqSC9XRFBsdUJsM1phckQ4aW5D + RFZmTFJMSkR5VE9idzJMZGZzajFBWFEKLS0tIElnTXg5aUNQVE5qOGlxd00zY0NX + ZGRES0oyeGZSRHBQU0RQNzNZd1VBZTAKhRXixVaTXhZrTmntLGaC9WIm/Ylm3tp7 + xQxZA8n5PRtqENa5Cj3jqJQS2gmwy5kixO9U6IHzMWntBE7zr/hKrQ== -----END AGE ENCRYPTED FILE----- lastmodified: "2025-06-08T19:43:47Z" mac: ENC[AES256_GCM,data:9YpgBrJwWhz2utNPldpIU/ylaN2QfkSj1LvWa8sISSnuXvsBsZ8a+oNzuGDd5+Q1pSYtoiBt6viqZn65wp8x+kb9ZMJdsWoZZG2U1b3rHUsadOYarvwMVDoQ5TZFFjEOyzyCgT7ln6v1rfAKwL5LJ3Kjv6SRIb9dK51sDsVijhQ=,iv:yTlxgZoOdB7pu5iZKP+q1cXbDsTT5HgsWo4tkix8948=,tag:qJbiq+Fayx5L9V7to1ijvQ==,type:str] From c7bb70d9019f8cb8f982c03e9eab47df40fd9804 Mon Sep 17 00:00:00 2001 From: chase Date: Fri, 13 Jun 2025 01:28:13 -0400 Subject: [PATCH 05/14] 229 current 2025-06-13 01:27:52 25.11.20250607.3e3afe5 6.15.1 * --- nixos/base.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/nixos/base.nix b/nixos/base.nix index 71f072a..6b4a55a 100644 --- a/nixos/base.nix +++ b/nixos/base.nix @@ -20,7 +20,11 @@ }; # Optimize store - nix.settings.auto-optimise-store = true; + nix.settings = { + auto-optimise-store = true; + download-buffer-size = 524288000; + experimental-features = ["nix-command" "flakes"]; + }; # Allow power management powerManagement.enable = true; @@ -66,9 +70,6 @@ # Enable CUPS to print documents. services.printing.enable = true; - # Enable Flakes - nix.settings.experimental-features = ["nix-command" "flakes"]; - # Allow unfree packages nixpkgs.config.allowUnfree = true; From ce888c452739d24889db5616844992a5f758a990 Mon Sep 17 00:00:00 2001 From: chase Date: Fri, 13 Jun 2025 02:21:16 -0400 Subject: [PATCH 06/14] 230 current 2025-06-13 02:20:57 25.11.20250607.3e3afe5 6.15.1 * --- flake.nix | 4 +- home/base.nix | 14 ++-- home/desktop.nix | 5 +- hosts/kuromi/configuration.nix | 2 +- hosts/kuromi/home.nix | 3 +- nixos/base.nix | 126 ++++++++++++++++----------------- 6 files changed, 81 insertions(+), 73 deletions(-) diff --git a/flake.nix b/flake.nix index 30c82aa..201893f 100644 --- a/flake.nix +++ b/flake.nix @@ -123,8 +123,8 @@ }; kuromi = mkNixOSConfigurations { host = hosts.kuromi; - nixpkgs = inputs.nixpkgs; - home-manager = inputs.home-manager; + nixpkgs = inputs.nixpkgs-stable; + home-manager = inputs.home-manager-stable; modules = []; }; }; diff --git a/home/base.nix b/home/base.nix index 0f88eea..ceb7ae4 100644 --- a/home/base.nix +++ b/home/base.nix @@ -1,5 +1,6 @@ { config, + lib, pkgs, ... }: { @@ -77,6 +78,13 @@ programs.bat.enable = true; + programs.btop.enable = true; + + programs.emacs = { + enable = true; + package = lib.mkDefault pkgs.emacs-nox; + }; + programs.fastfetch = { enable = true; settings = { @@ -149,13 +157,10 @@ ''; }; - # programs.senpai.enable = true; - - # programs.sm64ex.enable = true; - programs.starship = { enable = true; enableBashIntegration = true; + enableZshIntegration = true; settings = { line_break = { disabled = true; @@ -181,6 +186,7 @@ programs.yazi = { enable = true; enableBashIntegration = true; + enableZshIntegration = true; }; programs.yt-dlp = { diff --git a/home/desktop.nix b/home/desktop.nix index 08b711c..612f642 100644 --- a/home/desktop.nix +++ b/home/desktop.nix @@ -109,7 +109,10 @@ programs.kitty = { enable = true; enableGitIntegration = true; - shellIntegration.enableBashIntegration = true; + shellIntegration = { + enableBashIntegration = true; + enableZshIntegration = true; + }; font = { name = "BlexMono Nerd Font"; size = 11; diff --git a/hosts/kuromi/configuration.nix b/hosts/kuromi/configuration.nix index 7285cd6..71386dd 100644 --- a/hosts/kuromi/configuration.nix +++ b/hosts/kuromi/configuration.nix @@ -9,7 +9,7 @@ imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix - ../../nixos/desktop.nix + ../../nixos/base.nix ]; networking.hostName = "kuromi"; diff --git a/hosts/kuromi/home.nix b/hosts/kuromi/home.nix index 3c0aa01..77c2f6a 100644 --- a/hosts/kuromi/home.nix +++ b/hosts/kuromi/home.nix @@ -4,8 +4,7 @@ ... }: { imports = [ - ../../home/desktop.nix - ../../home/plasma.nix + ../../home/base.nix ]; home.stateVersion = "25.05"; diff --git a/nixos/base.nix b/nixos/base.nix index 6b4a55a..00f989a 100644 --- a/nixos/base.nix +++ b/nixos/base.nix @@ -6,34 +6,31 @@ ... }: { # Bootloader. - boot.loader.systemd-boot = { - enable = true; - configurationLimit = 10; + boot.loader = { + efi.canTouchEfiVariables = true; + systemd-boot = { + enable = true; + configurationLimit = 10; + }; }; - boot.loader.efi.canTouchEfiVariables = true; # Garbage collection - nix.gc = { - automatic = true; - dates = "weekly"; - options = "--delete-older-than 1w"; + nix = { + gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 1w"; + }; + nixPath = ["nixpkgs=${inputs.nixpkgs}"]; + settings = { + auto-optimise-store = true; + download-buffer-size = 524288000; + experimental-features = ["nix-command" "flakes"]; + }; }; - # Optimize store - nix.settings = { - auto-optimise-store = true; - download-buffer-size = 524288000; - experimental-features = ["nix-command" "flakes"]; - }; - - # Allow power management - powerManagement.enable = true; - - # Firmware updates - services.fwupd.enable = true; - - # Enable networking - networking.networkmanager.enable = true; + # Allow unfree packages + nixpkgs.config.allowUnfree = true; # Set your time zone. time.timeZone = "America/New_York"; @@ -53,12 +50,6 @@ LC_TIME = "C.UTF-8"; }; - # Catppuccin - catppuccin = { - enable = true; - flavor = "mocha"; - }; - # Configure keymap console.keyMap = lib.mkDefault "jp106"; @@ -67,11 +58,17 @@ model = lib.mkDefault "jp106"; }; - # Enable CUPS to print documents. - services.printing.enable = true; + # Allow power management + powerManagement.enable = true; - # Allow unfree packages - nixpkgs.config.allowUnfree = true; + # Enable networking + networking.networkmanager.enable = true; + + # Catppuccin + catppuccin = { + enable = true; + flavor = "mocha"; + }; # Android debug tools programs.adb.enable = true; @@ -145,6 +142,13 @@ vimAlias = true; }; + # ssh agent + programs.gnupg.agent.enable = true; + + programs.ssh = { + enableAskPassword = false; + }; + sops = { defaultSopsFile = ../secrets.yaml; validateSopsFiles = false; @@ -185,36 +189,6 @@ yubikey-manager ]; - nix.nixPath = ["nixpkgs=${inputs.nixpkgs}"]; - - # ssh agent - # programs.mtr.enable = true; - programs.gnupg.agent.enable = true; - - programs.ssh = { - enableAskPassword = false; - }; - - services.fstrim.enable = lib.mkDefault true; - - # Enable the OpenSSH daemon. - services.openssh = { - enable = true; - settings = { - PermitRootLogin = "no"; - PasswordAuthentication = false; - KbdInteractiveAuthentication = false; - }; - }; - - services.pcscd.enable = true; - - services.udev.packages = with pkgs; [ - yubikey-personalization - ]; - - services.yubikey-agent.enable = true; - security.pam = lib.optionalAttrs pkgs.stdenv.isLinux { sshAgentAuth.enable = true; u2f = { @@ -237,4 +211,30 @@ pkcs11.enable = true; tctiEnvironment.enable = true; }; + + services.fstrim.enable = lib.mkDefault true; + + # Firmware updates + services.fwupd.enable = true; + + # Enable the OpenSSH daemon. + services.openssh = { + enable = true; + settings = { + PermitRootLogin = "no"; + PasswordAuthentication = false; + KbdInteractiveAuthentication = false; + }; + }; + + services.pcscd.enable = true; + + # Enable CUPS to print documents. + services.printing.enable = true; + + services.udev.packages = with pkgs; [ + yubikey-personalization + ]; + + services.yubikey-agent.enable = true; } From 9dde449cddd0cc2e61da0f63eb217552ad5b11d7 Mon Sep 17 00:00:00 2001 From: chase Date: Fri, 13 Jun 2025 02:35:00 -0400 Subject: [PATCH 07/14] 231 current 2025-06-13 02:34:41 25.11.20250607.3e3afe5 6.15.1 * --- nixos/base.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/nixos/base.nix b/nixos/base.nix index 00f989a..548f774 100644 --- a/nixos/base.nix +++ b/nixos/base.nix @@ -83,10 +83,8 @@ enable = true; enableCompletion = true; enableBashCompletion = true; - enableAutosuggestions = true; - syntaxHighlighting = { - enable = true; - }; + autosuggestions.enable = true; + syntaxHighlighting.enable = true; }; # Define a user account From 51f0e96488953a82586ae1ad6881e80ec4dc6e7e Mon Sep 17 00:00:00 2001 From: chase Date: Fri, 13 Jun 2025 02:38:51 -0400 Subject: [PATCH 08/14] 232 current 2025-06-13 02:38:33 25.11.20250607.3e3afe5 6.15.1 * --- flake.lock | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/flake.lock b/flake.lock index 70e7e44..4e00a8a 100644 --- a/flake.lock +++ b/flake.lock @@ -191,11 +191,11 @@ ] }, "locked": { - "lastModified": 1749526396, - "narHash": "sha256-UL9F76abAk87llXOrcQRjhd5OaOclUd6MIltsqcUZmo=", + "lastModified": 1749779443, + "narHash": "sha256-r6YTIMprNCYcJcA4oZ0x1wPaHPPHUxb8CnyEeMkhGks=", "owner": "nix-community", "repo": "home-manager", - "rev": "427c96044f11a5da50faf6adaf38c9fa47e6d044", + "rev": "18f3a0d21c3739a242aafa17c04c5238bbab5a41", "type": "github" }, "original": { @@ -300,11 +300,11 @@ "xdph": "xdph" }, "locked": { - "lastModified": 1749540031, - "narHash": "sha256-11k6hq/4Tao2PNBFQpSNTlFFKmKGswL17caKuZIE0sM=", + "lastModified": 1749767250, + "narHash": "sha256-oWFxMzPIcp3ys4K0JXuAMPwGZcDqrKLSVgP4SPeP7cY=", "owner": "hyprwm", "repo": "Hyprland", - "rev": "6bdb1f413e4c592f73d91bef33dfb202503ef7ab", + "rev": "d14f81e6ac3debd57f8e3e70ead5bb52606a8c90", "type": "github" }, "original": { @@ -545,11 +545,11 @@ }, "nixpkgs-stable_2": { "locked": { - "lastModified": 1749494155, - "narHash": "sha256-FG4DEYBpROupu758beabUk9lhrblSf5hnv84v1TLqMc=", + "lastModified": 1749727998, + "narHash": "sha256-mHv/yeUbmL91/TvV95p+mBVahm9mdQMJoqaTVTALaFw=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "88331c17ba434359491e8d5889cce872464052c2", + "rev": "fd487183437963a59ba763c0cc4f27e3447dd6dd", "type": "github" }, "original": { @@ -600,11 +600,11 @@ "treefmt-nix": "treefmt-nix" }, "locked": { - "lastModified": 1749581904, - "narHash": "sha256-QAzSbQuxaqM33WoOGCvwKlpuGPoN1RLAJOllz/Kli0I=", + "lastModified": 1749793929, + "narHash": "sha256-DKPE3shWebs9tBgfUsfFvJ2AHQtstHjp4h1CN6s7qa0=", "owner": "nix-community", "repo": "NUR", - "rev": "7f891b80637b9dc6b4254714e9cb6b435be31f86", + "rev": "6e15f4990e4c32382a927b68a6533ec254c60bbe", "type": "github" }, "original": { @@ -728,11 +728,11 @@ ] }, "locked": { - "lastModified": 1747603214, - "narHash": "sha256-lAblXm0VwifYCJ/ILPXJwlz0qNY07DDYdLD+9H+Wc8o=", + "lastModified": 1749592509, + "narHash": "sha256-VunQzfZFA+Y6x3wYi2UE4DEQ8qKoAZZCnZPUlSoqC+A=", "owner": "Mic92", "repo": "sops-nix", - "rev": "8d215e1c981be3aa37e47aeabd4e61bb069548fd", + "rev": "50754dfaa0e24e313c626900d44ef431f3210138", "type": "github" }, "original": { From 963e2b12948753c127af8b0e42875a0da2f0f9ff Mon Sep 17 00:00:00 2001 From: chase Date: Fri, 13 Jun 2025 12:15:34 -0400 Subject: [PATCH 09/14] Edit emacs config for better terminal support --- home/emacs/early-init.el | 9 +++++---- home/emacs/init.el | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/home/emacs/early-init.el b/home/emacs/early-init.el index 772019a..695afa4 100644 --- a/home/emacs/early-init.el +++ b/home/emacs/early-init.el @@ -49,10 +49,11 @@ ;; prevent resizing of the frame (setq frame-inhibit-implied-resize t) -;; no bars -(menu-bar-mode -1) -(tool-bar-mode -1) -(scroll-bar-mode -1) +;; no bars when graphical +(when (display-graphic-p) + (menu-bar-mode -1) + (tool-bar-mode -1) + (scroll-bar-mode -1)) ;; no startup screen (setq inhibit-startup-screen t) diff --git a/home/emacs/init.el b/home/emacs/init.el index a9f0772..e67ea22 100644 --- a/home/emacs/init.el +++ b/home/emacs/init.el @@ -57,7 +57,7 @@ (setq use-package-always-demand t use-package-compute-statistics t) -(require 'bind-key) +(use-package bind-key) (use-package diminish) From 796808a38ab72a18ac77120c55aee3726e1da9ae Mon Sep 17 00:00:00 2001 From: chase Date: Fri, 13 Jun 2025 15:23:08 -0400 Subject: [PATCH 10/14] Edit emacs config --- home/emacs/early-init.el | 9 ++++----- home/emacs/init.el | 8 ++++++-- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/home/emacs/early-init.el b/home/emacs/early-init.el index 695afa4..772019a 100644 --- a/home/emacs/early-init.el +++ b/home/emacs/early-init.el @@ -49,11 +49,10 @@ ;; prevent resizing of the frame (setq frame-inhibit-implied-resize t) -;; no bars when graphical -(when (display-graphic-p) - (menu-bar-mode -1) - (tool-bar-mode -1) - (scroll-bar-mode -1)) +;; no bars +(menu-bar-mode -1) +(tool-bar-mode -1) +(scroll-bar-mode -1) ;; no startup screen (setq inhibit-startup-screen t) diff --git a/home/emacs/init.el b/home/emacs/init.el index e67ea22..2fd3389 100644 --- a/home/emacs/init.el +++ b/home/emacs/init.el @@ -281,8 +281,8 @@ (prog-mode . yas-minor-mode) :config (setq yas-snippet-dirs - '("~/.config/emacs/snippets" ;; personal - "~/.config/emacs/work"))) ;; keep em separated + '((expand-file-name "snippets/" user-emacs-directory) ;; personal + (expand-file-name "work/" user-emacs-directory)))) ;; keep em separated ;; nix (use-package nix-ts-mode @@ -397,7 +397,11 @@ ;; agenda (require 'find-lisp) + (unless (file-exists-p "~/Documents/org") + (make-directory "~/Documents/org" t)) (setq org-directory "~/Documents/org") + (unless (file-exists-p (expand-file-name "gtd/" org-directory)) + (make-directory (expand-file-name "gtd/" org-directory) t)) (setq chase/org-agenda-directory (expand-file-name "gtd/" org-directory)) (setq org-agenda-files From bb55528d609969513fd22ee87b29ad9fe452a5a5 Mon Sep 17 00:00:00 2001 From: chase Date: Fri, 13 Jun 2025 15:45:45 -0400 Subject: [PATCH 11/14] More emacs config tweaks --- home/emacs/early-init.el | 2 -- home/emacs/init.el | 11 ++++++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/home/emacs/early-init.el b/home/emacs/early-init.el index 772019a..22d7cc6 100644 --- a/home/emacs/early-init.el +++ b/home/emacs/early-init.el @@ -51,8 +51,6 @@ ;; no bars (menu-bar-mode -1) -(tool-bar-mode -1) -(scroll-bar-mode -1) ;; no startup screen (setq inhibit-startup-screen t) diff --git a/home/emacs/init.el b/home/emacs/init.el index 2fd3389..84336aa 100644 --- a/home/emacs/init.el +++ b/home/emacs/init.el @@ -21,6 +21,10 @@ (add-to-list 'find-file-not-found-functions #'er-auto-create-missing-dirs) +(when (display-graphic-p) + (tool-bar-mode -1) + (scroll-bar-mode -1)) + ;; set repos and bootstrap use-package ;; (require 'package) @@ -460,9 +464,6 @@ (use-package org-roam :after org - :custom - (org-roam-directory - (expand-file-name "roam/" org-directory)) :bind (("C-c n l" . org-roam-buffer-toggle) ("C-c n f" . org-roam-node-find) @@ -472,6 +473,10 @@ ;; Dailies ("C-c n j" . org-roam-dailies-capture-today)) :config + (unless (file-exists-p (expand-file-name "gtd/" org-directory)) + (make-directory (expand-file-name "gtd/" org-directory) t)) + (setq org-roam-directory + (expand-file-name "roam/" org-directory)) (require 'org-roam-protocol) (require 'org-roam-export) (org-roam-db-autosync-mode) From b6416eecc783bd17516b118eb8f09146cc5cb680 Mon Sep 17 00:00:00 2001 From: chase Date: Fri, 13 Jun 2025 16:16:09 -0400 Subject: [PATCH 12/14] Emacs config fixes --- home/emacs/early-init.el | 4 +++- home/emacs/init.el | 8 +++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/home/emacs/early-init.el b/home/emacs/early-init.el index 22d7cc6..549c535 100644 --- a/home/emacs/early-init.el +++ b/home/emacs/early-init.el @@ -50,7 +50,9 @@ (setq frame-inhibit-implied-resize t) ;; no bars -(menu-bar-mode -1) +;;(menu-bar-mode -1) +;;(tool-bar-mode -1) +;;(scroll-bar-mode -1) ;; no startup screen (setq inhibit-startup-screen t) diff --git a/home/emacs/init.el b/home/emacs/init.el index 84336aa..c34bd75 100644 --- a/home/emacs/init.el +++ b/home/emacs/init.el @@ -21,9 +21,11 @@ (add-to-list 'find-file-not-found-functions #'er-auto-create-missing-dirs) -(when (display-graphic-p) - (tool-bar-mode -1) - (scroll-bar-mode -1)) +;; no bars +(add-hook 'window-setup-hook (lambda () + (menu-bar-mode -1) + (tool-bar-mode -1) + (scroll-bar-mode -1))) ;; set repos and bootstrap use-package ;; (require 'package) From 2fead2a1f8eaf18152b0020cb7be7d861f52cafe Mon Sep 17 00:00:00 2001 From: chase Date: Fri, 13 Jun 2025 16:22:08 -0400 Subject: [PATCH 13/14] 238 current 2025-06-13 16:21:57 25.11.20250607.3e3afe5 6.15.1 * --- home/emacs/init.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home/emacs/init.el b/home/emacs/init.el index c34bd75..8b1c77c 100644 --- a/home/emacs/init.el +++ b/home/emacs/init.el @@ -475,8 +475,8 @@ ;; Dailies ("C-c n j" . org-roam-dailies-capture-today)) :config - (unless (file-exists-p (expand-file-name "gtd/" org-directory)) - (make-directory (expand-file-name "gtd/" org-directory) t)) + (unless (file-exists-p (expand-file-name "roam/" org-directory)) + (make-directory (expand-file-name "roam/" org-directory) t)) (setq org-roam-directory (expand-file-name "roam/" org-directory)) (require 'org-roam-protocol) From 65fd7498d7230aad17165edc86662aba8775fc48 Mon Sep 17 00:00:00 2001 From: chase Date: Mon, 16 Jun 2025 16:47:09 -0400 Subject: [PATCH 14/14] 239 current 2025-06-16 16:46:57 25.11.20250607.3e3afe5 6.15.1 * --- nixos/base.nix | 11 ++++++++--- nixos/desktop.nix | 1 + 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/nixos/base.nix b/nixos/base.nix index 548f774..c04e2f0 100644 --- a/nixos/base.nix +++ b/nixos/base.nix @@ -230,9 +230,14 @@ # Enable CUPS to print documents. services.printing.enable = true; - services.udev.packages = with pkgs; [ - yubikey-personalization - ]; + services.udev = { + packages = with pkgs; [ + yubikey-personalization + ]; + extraRules = '' + SUBSYSTEM=="usb", ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0202", MODE="0666", GROUP="dialout" + ''; + }; services.yubikey-agent.enable = true; } diff --git a/nixos/desktop.nix b/nixos/desktop.nix index e3e6599..345f8a2 100644 --- a/nixos/desktop.nix +++ b/nixos/desktop.nix @@ -119,6 +119,7 @@ winDecStyles = ["classic"]; }) firefoxpwa + qpwgraph yubioath-flutter ];