From d74ccfc352ce347a0d2afae8afdf35f2f99a5365 Mon Sep 17 00:00:00 2001 From: marc Date: Fri, 26 Sep 2025 13:37:37 +0200 Subject: [PATCH] rack nixos-anywhere --- flake.lock | 48 ++++++++++++++++++++++-- flake.nix | 16 ++++++++ profiles/rack/configuration.nix | 65 +++++++++++++++++++++++++++++++++ 3 files changed, 126 insertions(+), 3 deletions(-) create mode 100644 profiles/rack/configuration.nix diff --git a/flake.lock b/flake.lock index 92065d4..828984a 100644 --- a/flake.lock +++ b/flake.lock @@ -186,7 +186,7 @@ }, "flake-utils_2": { "inputs": { - "systems": "systems_4" + "systems": "systems_5" }, "locked": { "lastModified": 1731533236, @@ -204,7 +204,7 @@ }, "flake-utils_3": { "inputs": { - "systems": "systems_5" + "systems": "systems_6" }, "locked": { "lastModified": 1731533236, @@ -544,6 +544,32 @@ "type": "github" } }, + "hyprtasking": { + "inputs": { + "hyprland": [ + "hyprland" + ], + "nixpkgs": [ + "hyprtasking", + "hyprland", + "nixpkgs" + ], + "systems": "systems_4" + }, + "locked": { + "lastModified": 1754263431, + "narHash": "sha256-EmGvVOQcY/93SnoHL5OAsLI5ltvVrTeMu2pgeoc3Z/I=", + "owner": "raybbian", + "repo": "hyprtasking", + "rev": "a803c56cc2ae98b8bd3f7102388fae4826697927", + "type": "github" + }, + "original": { + "owner": "raybbian", + "repo": "hyprtasking", + "type": "github" + } + }, "hyprutils": { "inputs": { "nixpkgs": [ @@ -947,6 +973,7 @@ "home-manager": "home-manager_2", "hyprland": "hyprland", "hyprland-plugins": "hyprland-plugins", + "hyprtasking": "hyprtasking", "microvm": "microvm", "newt": "newt", "nix-on-droid": "nix-on-droid", @@ -1078,6 +1105,21 @@ } }, "systems_4": { + "locked": { + "lastModified": 1689347949, + "narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=", + "owner": "nix-systems", + "repo": "default-linux", + "rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default-linux", + "type": "github" + } + }, + "systems_5": { "locked": { "lastModified": 1681028828, "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", @@ -1092,7 +1134,7 @@ "type": "github" } }, - "systems_5": { + "systems_6": { "locked": { "lastModified": 1681028828, "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", diff --git a/flake.nix b/flake.nix index 807585d..5226680 100644 --- a/flake.nix +++ b/flake.nix @@ -8,6 +8,11 @@ catppuccin.url = "github:catppuccin/nix"; newt.url = "github:fosrl/newt"; claude-code.url = "github:sadjow/claude-code-nix"; + + hyprtasking = { + url = "github:raybbian/hyprtasking"; + inputs.hyprland.follows = "hyprland"; + }; catppuccin-thunderbird = { url = "github:catppuccin/thunderbird"; @@ -65,6 +70,17 @@ ]; }; + rack = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + specialArgs = { inherit inputs; }; + modules = [ + # ./hosts/tower/hardware-configuration.nix + ./profiles/rack/configuration.nix + # ./users.nix + # ./users/marc + ]; + }; + tower = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; specialArgs = { inherit inputs; }; diff --git a/profiles/rack/configuration.nix b/profiles/rack/configuration.nix new file mode 100644 index 0000000..02c51db --- /dev/null +++ b/profiles/rack/configuration.nix @@ -0,0 +1,65 @@ +{ config, lib, pkgs, ... }: + +{ + + imports = [ + # ./modules/sshd + # ../../nod-sshd + # ../../zsh + ]; + + # Simply install just the packages + environment.systemPackages = with pkgs; [ + + # Some common stuff that people expect to have + procps + killall + #diffutils + #findutils + #utillinux + #tzdata + #hostname + #man + #gnugrep + #gnupg + #gnused + #gnutar + #bzip2 + #gzip + #xz + #zip + #unzip + nano + openssh + iproute2 + shadow + neovim + zsh + git + gh + just + wayvnc + stow + ncdu + pangolin + htop + which + podman + neofetch + ]; + + # Backup etc files instead of failing to activate generation if a file already exists in /etc + # environment.etcBackupExtension = ".bak"; + + # Read the changelog before changing this value + system.stateVersion = "24.05"; + + + # Set up nix for flakes + nix.extraOptions = '' + experimental-features = nix-command flakes + ''; + + # Set your time zone + time.timeZone = "Europe/Paris"; +}