From b03daef66cdc1e1c7f45647ccd3752f2fd329042 Mon Sep 17 00:00:00 2001 From: rocketcamel Date: Tue, 21 Jan 2025 04:42:49 +0000 Subject: [PATCH] Add stow --- nix/configuration.nix | 2 +- nix/flake.lock | 101 ++++++++++++++++++++++++++++++++++++++++++ nix/flake.nix | 4 +- 3 files changed, 104 insertions(+), 3 deletions(-) create mode 100644 nix/flake.lock diff --git a/nix/configuration.nix b/nix/configuration.nix index b844ac5..e35527d 100644 --- a/nix/configuration.nix +++ b/nix/configuration.nix @@ -6,7 +6,7 @@ { nix.settings.experimental-features = [ "nix-command" "flakes" ]; - environment.systemPackages = with pkgs; [ wget busybox ]; + environment.systemPackages = with pkgs; [ wget busybox stow ]; programs.nix-ld.enable = true; networking.hostName = meta.hostname; diff --git a/nix/flake.lock b/nix/flake.lock new file mode 100644 index 0000000..b8bd9b6 --- /dev/null +++ b/nix/flake.lock @@ -0,0 +1,101 @@ +{ + "nodes": { + "flake-compat": { + "flake": false, + "locked": { + "lastModified": 1733328505, + "narHash": "sha256-NeCCThCEP3eCl2l/+27kNNK7QrwZB1IJCrXfrbv5oqU=", + "owner": "edolstra", + "repo": "flake-compat", + "rev": "ff81ac966bb2cae68946d5ed5fc4994f96d0ffec", + "type": "github" + }, + "original": { + "owner": "edolstra", + "repo": "flake-compat", + "type": "github" + } + }, + "home-manager": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1737394973, + "narHash": "sha256-EW4oXMfnfA5sNM9Jqm+y98horWVvN66Gu7YIcEpFYZc=", + "owner": "nix-community", + "repo": "home-manager", + "rev": "9786661d57c476021c8a0c3e53bf9fa2b4f3328b", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "home-manager", + "type": "github" + } + }, + "nixos-wsl": { + "inputs": { + "flake-compat": "flake-compat", + "nixpkgs": "nixpkgs" + }, + "locked": { + "lastModified": 1736095716, + "narHash": "sha256-csysw/Szu98QDiA2lhWk9seYOyCebeVEWL89zh1cduM=", + "owner": "nix-community", + "repo": "NixOS-WSL", + "rev": "63c3b4ed1712a3a0621002cd59bfdc80875ecbb0", + "type": "github" + }, + "original": { + "owner": "nix-community", + "ref": "main", + "repo": "NixOS-WSL", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1733384649, + "narHash": "sha256-K5DJ2LpPqht7K76bsxetI+YHhGGRyVteTPRQaIIKJpw=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "190c31a89e5eec80dd6604d7f9e5af3802a58a13", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-24.05", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_2": { + "locked": { + "lastModified": 1737062831, + "narHash": "sha256-Tbk1MZbtV2s5aG+iM99U8FqwxU/YNArMcWAv6clcsBc=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "5df43628fdf08d642be8ba5b3625a6c70731c19c", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "home-manager": "home-manager", + "nixos-wsl": "nixos-wsl", + "nixpkgs": "nixpkgs_2" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/nix/flake.nix b/nix/flake.nix index 2bc8daa..2984e35 100644 --- a/nix/flake.nix +++ b/nix/flake.nix @@ -8,7 +8,7 @@ home-manager.inputs.nixpkgs.follows = "nixpkgs"; }; - outputs = inputs@{ nixpkgs, ... }: + outputs = inputs@{ nixpkgs, home-manager, nixos-wsl, ... }: let systems = [ "x86_64-linux" ]; hosts = [{ @@ -20,7 +20,7 @@ name = host.name; value = nixpkgs.lib.nixosSystem { specialArgs = { - inherit inputs outputs; + inherit inputs; meta = { hostname = host.name; }; }; system = "x86_64-linux";