diff options
| author | nsfisis <nsfisis@gmail.com> | 2023-09-02 09:43:06 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2023-09-02 09:43:06 +0900 |
| commit | 1311917d3118c3d7dbb6815280f8fe0febbbdc8d (patch) | |
| tree | af576b92959f77332239a1ddc22fa9e943253d89 /flake.nix | |
| parent | f8d23391c64acfd9db15816aa2522ce0ef4ad1a5 (diff) | |
| download | dotfiles-1311917d3118c3d7dbb6815280f8fe0febbbdc8d.tar.gz dotfiles-1311917d3118c3d7dbb6815280f8fe0febbbdc8d.tar.zst dotfiles-1311917d3118c3d7dbb6815280f8fe0febbbdc8d.zip | |
home-manager: refactor a bit
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 21 |
1 files changed, 18 insertions, 3 deletions
@@ -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; + }; }; } |
