diff options
| -rw-r--r-- | flake.lock | 60 | ||||
| -rw-r--r-- | flake.nix | 1 | ||||
| -rw-r--r-- | hosts/pendrive/hardware-configuration.nix | 18 | ||||
| -rw-r--r-- | os/core/ssh.nix | 4 |
4 files changed, 51 insertions, 32 deletions
@@ -157,11 +157,11 @@ ] }, "locked": { - "lastModified": 1769381762, - "narHash": "sha256-Mf/8jPJvFXIL8s/gtSrU8PgXJy5Vz7seIU4D7WJmG0M=", + "lastModified": 1769397130, + "narHash": "sha256-TTM4KV9IHwa181X7afBRbhLJIrgynpDjAXJFMUOWfyU=", "owner": "nix-community", "repo": "home-manager", - "rev": "2590268ca7627a3ec1a9c9422983495cea51e2e1", + "rev": "c37679d37bdbecf11bbe3c5eb238d89ca4f60641", "type": "github" }, "original": { @@ -196,11 +196,11 @@ ] }, "locked": { - "lastModified": 1769299463, - "narHash": "sha256-RxUJUDLWIvBJ6Dv6p//Ept7gUPb03ZURSWGirjlYwSQ=", + "lastModified": 1769385907, + "narHash": "sha256-hUbEb7kdoBjB1zyGZA3mpp9oI5RMqC+wZhcO1qK8qZI=", "owner": "nix-community", "repo": "neovim-nightly-overlay", - "rev": "041b08bc200ba1b08850943797a7e1a7f4ad142b", + "rev": "068b3d335c56a2b6499ad623572c3fb48e17cd5f", "type": "github" }, "original": { @@ -212,11 +212,11 @@ "neovim-src": { "flake": false, "locked": { - "lastModified": 1769260606, - "narHash": "sha256-hTJJSGgYrPkVnpJCLXeCIKia6PM9y7D9/KBNmNafwOA=", + "lastModified": 1769383511, + "narHash": "sha256-NCsf5TVBTHR0cMs1yVjfUHiRB89+faHV4Ls+ZXeMNmI=", "owner": "neovim", "repo": "neovim", - "rev": "57574db15460be27f056eb21a71b96312396a615", + "rev": "95b03171df223e1fed5de15124a3b9204f37048a", "type": "github" }, "original": { @@ -237,11 +237,11 @@ "xwayland-satellite-unstable": "xwayland-satellite-unstable" }, "locked": { - "lastModified": 1769366931, - "narHash": "sha256-OMQ+aRJdx1x+u3JG/Zlj1YWeMPmJjKMyy6OMf3M7U78=", + "lastModified": 1769429762, + "narHash": "sha256-kiWNe34XXo7wneh1PzaAPBvueVbjrZ8cCLcW18EB95Y=", "owner": "sodiboo", "repo": "niri-flake", - "rev": "419d7b73430a1f3de344a85bed50e770227f0b77", + "rev": "6bb07820013d6164df76c658b2dfab2a634300ac", "type": "github" }, "original": { @@ -270,11 +270,11 @@ "niri-unstable": { "flake": false, "locked": { - "lastModified": 1769363347, - "narHash": "sha256-fqaPwglujRdIXArV6a/0SG4otGPlvFGqFJo5EOAKnX0=", + "lastModified": 1769397515, + "narHash": "sha256-VNfKIuHzNYPcaJxG+RxNgY4jK9CPf0nKovRDNFvdgAw=", "owner": "YaLTeR", "repo": "niri", - "rev": "5ddcf195dd6cb24cf67c24d4622ef0a4dca9ed12", + "rev": "a34ed51586a8a440899396a9746eb413f05045e1", "type": "github" }, "original": { @@ -292,11 +292,11 @@ ] }, "locked": { - "lastModified": 1769337638, - "narHash": "sha256-xJvTZGJWaSBq857V/PVL5GblIpiuO0IuUupLvBxNqr0=", + "lastModified": 1769385793, + "narHash": "sha256-GtAyfMHGNAf8Oz+Gz0dBO2L/ZyZO7AVmgVOpCr/FZc8=", "owner": "KaylorBen", "repo": "nixcord", - "rev": "ef69bfad63be091496c444675aee2e8af6a8973c", + "rev": "de37fd12b9344786841e53bc0f3556148d4ce5df", "type": "github" }, "original": { @@ -338,11 +338,11 @@ }, "nixpkgs-stable": { "locked": { - "lastModified": 1769089682, - "narHash": "sha256-9yA/LIuAVQq0lXelrZPjLuLVuZdm03p8tfmHhnDIkms=", + "lastModified": 1769318308, + "narHash": "sha256-Mjx6p96Pkefks3+aA+72lu1xVehb6mv2yTUUqmSet6Q=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "078d69f03934859a181e81ba987c2bb033eebfc5", + "rev": "1cd347bf3355fce6c64ab37d3967b4a2cb4b878c", "type": "github" }, "original": { @@ -377,11 +377,11 @@ "systems": "systems" }, "locked": { - "lastModified": 1769371381, - "narHash": "sha256-9bC3eGKPUSb13wcjT8BT3wpqicLs/Vw1OU22WYLNYnY=", + "lastModified": 1769418848, + "narHash": "sha256-jLSg9IkglcIw64kU1utXxsxXhiVdD45dkh9ZJKaFQ7U=", "owner": "nix-community", "repo": "nixvim", - "rev": "f5525b2c35c870010a4842032040ad092800acd4", + "rev": "c19a0517ddeed4c1548611e42e187048fc2e5dcf", "type": "github" }, "original": { @@ -398,11 +398,11 @@ ] }, "locked": { - "lastModified": 1769379906, - "narHash": "sha256-btQxa6MLgJcAlwivGK++cGzrvlyIXFRc3++qR5EuZ3Y=", + "lastModified": 1769428751, + "narHash": "sha256-CywFJ9fcsqtitCQt9VokkxIJNCXzcyGKRoYd3dk1MhE=", "owner": "nix-community", "repo": "NUR", - "rev": "3f0038c142806f43915c5d7c5dcd94782896705a", + "rev": "42c1e2bb76c3952d37ae0e61a5069e8a47983c5e", "type": "github" }, "original": { @@ -617,11 +617,11 @@ "rust-overlay": "rust-overlay_2" }, "locked": { - "lastModified": 1769281610, - "narHash": "sha256-T/4fz5vHiTzUZDH6/qZoTCHzO2RH2Qhn0OGil1R3jM8=", + "lastModified": 1769419437, + "narHash": "sha256-tlTDzEe+YUDLH7AqR/aK0TP+dzDLOHhuvRBetb1xKKU=", "owner": "sxyazi", "repo": "yazi", - "rev": "face6aed40b37f86be4320bab934b2dcf98277fe", + "rev": "06c665a086538d9d7b637785c6410a49d8bd85cc", "type": "github" }, "original": { @@ -100,6 +100,7 @@ pendrive = mkHost { hostname = "pendrive"; path = ./hosts/pendrive/configuration.nix; + user = "user"; }; }; }; diff --git a/hosts/pendrive/hardware-configuration.nix b/hosts/pendrive/hardware-configuration.nix new file mode 100644 index 0000000..67cc663 --- /dev/null +++ b/hosts/pendrive/hardware-configuration.nix @@ -0,0 +1,18 @@ +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, modulesPath, ... }: + +{ + imports = + [ (modulesPath + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sr_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} diff --git a/os/core/ssh.nix b/os/core/ssh.nix index aeb43c5..2fb35f8 100644 --- a/os/core/ssh.nix +++ b/os/core/ssh.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ config, lib, pkgs, username, ... }: let cfg = config.os.core.ssh; in @@ -19,7 +19,7 @@ in enableSSHSupport = true; pinentryPackage = pkgs.pinentry-curses; }; - users.users.adam.openssh.authorizedKeys.keys = [ + users.users.${username}.openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAID5/Mr4PLMDflZ+SoaYP9N3kRbkkh1qL5NLSgW6C7sAu adikro@disroot.org" ]; }; |
