aboutsummaryrefslogtreecommitdiffhomepage
path: root/flake.nix
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2023-09-02 09:43:06 +0900
committernsfisis <nsfisis@gmail.com>2023-09-02 09:43:06 +0900
commit1311917d3118c3d7dbb6815280f8fe0febbbdc8d (patch)
treeaf576b92959f77332239a1ddc22fa9e943253d89 /flake.nix
parentf8d23391c64acfd9db15816aa2522ce0ef4ad1a5 (diff)
downloaddotfiles-1311917d3118c3d7dbb6815280f8fe0febbbdc8d.tar.gz
dotfiles-1311917d3118c3d7dbb6815280f8fe0febbbdc8d.tar.zst
dotfiles-1311917d3118c3d7dbb6815280f8fe0febbbdc8d.zip
home-manager: refactor a bit
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix21
1 files changed, 18 insertions, 3 deletions
diff --git a/flake.nix b/flake.nix
index 79121d2..35763ae 100644
--- a/flake.nix
+++ b/flake.nix
@@ -18,18 +18,33 @@
};
};
- outputs = { nixpkgs, home-manager, ... } @ inputs: {
- homeConfigurations.ken = home-manager.lib.homeManagerConfiguration {
+ outputs = {
+ nixpkgs,
+ home-manager,
+ ...
+ } @ inputs:
+ let
+ mkHomeConfiguration = {
+ system,
+ env,
+ ...
+ }: home-manager.lib.homeManagerConfiguration {
pkgs = import nixpkgs {
- system = "x86_64-linux";
+ system = system;
config.allowUnfree = true;
};
extraSpecialArgs = {
inherit inputs;
+ inherit env;
};
modules = [
./home-manager/home.nix
];
};
+ in {
+ homeConfigurations.ken = mkHomeConfiguration {
+ system = "x86_64-linux";
+ env.gui.clipboard.copyCommand = null;
+ };
};
}