From a0ba7ce3823848c03b968ca1f1870d0132595ac4 Mon Sep 17 00:00:00 2001 From: Doloro1978 Date: Tue, 20 Jan 2026 22:47:33 +0000 Subject: [PATCH] wip(server(rpi-5)): more work.. --- flake.lock | 17 ++++++++++++++ flake.nix | 2 +- hosts/rpi-5/home.nix | 54 +++++++++++++++++++++++++++++++++++++++++++ hosts/rpi-5/nixos.nix | 7 ++++++ 4 files changed, 79 insertions(+), 1 deletion(-) create mode 100644 hosts/rpi-5/home.nix create mode 100644 hosts/rpi-5/nixos.nix diff --git a/flake.lock b/flake.lock index 55f67f7..7bf7be7 100644 --- a/flake.lock +++ b/flake.lock @@ -846,6 +846,22 @@ "type": "github" } }, + "nixos-hardware": { + "locked": { + "lastModified": 1768736227, + "narHash": "sha256-qgGq7CfrYKc3IBYQ7qp0Z/ZXndQVC5Bj0N8HW9mS2rM=", + "owner": "NixOS", + "repo": "nixos-hardware", + "rev": "d447553bcbc6a178618d37e61648b19e744370df", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "master", + "repo": "nixos-hardware", + "type": "github" + } + }, "nixos-wsl": { "inputs": { "flake-compat": "flake-compat_2", @@ -1174,6 +1190,7 @@ "nikkuss-pkgs": "nikkuss-pkgs", "nix-meow": "nix-meow", "nix-warez": "nix-warez", + "nixos-hardware": "nixos-hardware", "nixos-wsl": "nixos-wsl", "nixpkgs": "nixpkgs_8", "nixpkgs-gamescope": "nixpkgs-gamescope", diff --git a/flake.nix b/flake.nix index b1646f6..ccda49d 100644 --- a/flake.nix +++ b/flake.nix @@ -63,7 +63,7 @@ url = "github:Nixos/nixpkgs?rev=8fcb6f1c4948305af52d19f887b89011ee2c080d"; }; font-patcher.url = "github:Doloro1978/nix-nerd-fonts-patcher"; - inputs.nixos-hardware.url = "github:NixOS/nixos-hardware/master"; + nixos-hardware.url = "github:NixOS/nixos-hardware/master"; }; outputs = inputs@{ diff --git a/hosts/rpi-5/home.nix b/hosts/rpi-5/home.nix new file mode 100644 index 0000000..4bb0cbb --- /dev/null +++ b/hosts/rpi-5/home.nix @@ -0,0 +1,54 @@ +{ + inputs, + config, + pkgs, + fetchFromGitHub, + ... +}: +{ + modules = { + hyfetch.enable = true; + sops.enable = true; + nixvim.enable = true; + tmux.enable = true; + # theme.enable = true; + fish.enable = true; + direnv.enable = true; + git.enable = true; + }; + # Home Manager needs a bit of information about you and the paths it should + # manage. + home.username = "doloro"; + home.homeDirectory = "/home/doloro"; + + # services = { + # }; + + # This value determines the Home Manager release that your configuration is + # compatible with. This helps avoid breakage when a new Home Manager release + # introduces backwards incompatible changes. + # + # You should not change this value, even if you update Home Manager. If you do + # want to update the value, then make sure to first check the Home Manager + # release notes. + home.stateVersion = "25.11"; # Please read the comment before changing. + + # The home.packages option allows you to install Nix packages into your + # environment. + home.packages = with pkgs; [ + hello + vim + lazygit + btop + sops + ]; + home.sessionVariables = { + EDITOR = "nvim"; + }; + + xdg.configFile."mimeapps.list".force = true; + + programs = { + home-manager.enable = true; + }; +} diff --git a/hosts/rpi-5/nixos.nix b/hosts/rpi-5/nixos.nix new file mode 100644 index 0000000..bbf323f --- /dev/null +++ b/hosts/rpi-5/nixos.nix @@ -0,0 +1,7 @@ +{ lib, inputs, ... }: +{ + imports = [ + ./disks.nix + inputs.nixos-hardware.nixosModules.raspberry-pi-4 + ]; +}