Use home-manager as flake
This commit is contained in:
parent
122bbc2236
commit
720f6496f8
3 changed files with 20 additions and 28 deletions
6
Makefile
6
Makefile
|
@ -1,6 +0,0 @@
|
||||||
.PHONY: update clean
|
|
||||||
update:
|
|
||||||
home-manager switch --flake .#functionalhacker
|
|
||||||
|
|
||||||
clean:
|
|
||||||
nix-collect-garbage -d
|
|
21
flake.nix
21
flake.nix
|
@ -11,24 +11,21 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { nixpkgs, home-manager, ... }:
|
outputs = { nixpkgs, home-manager, ... }:
|
||||||
let
|
|
||||||
system = "x86_64-linux";
|
|
||||||
pkgs = import nixpkgs { inherit system; };
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
nixosConfigurations.Mirkwood = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.Mirkwood = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
./common.nix
|
|
||||||
./hosts/Mirkwood/configuration.nix
|
./hosts/Mirkwood/configuration.nix
|
||||||
];
|
./nixos_common.nix
|
||||||
};
|
|
||||||
|
|
||||||
homeConfigurations = {
|
home-manager.nixosModules.home-manager
|
||||||
functionalhacker = home-manager.lib.homeManagerConfiguration {
|
{
|
||||||
inherit pkgs;
|
home-manager.useGlobalPkgs = true;
|
||||||
modules = [ ./users/functionalhacker/home.nix ];
|
home-manager.useUserPackages = true;
|
||||||
};
|
home-manager.users.functionalhacker =
|
||||||
|
import ./users/functionalhacker/home.nix;
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,16 +64,17 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
nativeMessagingHosts.packages = [ pkgs.browserpass ];
|
nativeMessagingHosts.packages = [ pkgs.browserpass ];
|
||||||
};
|
};
|
||||||
zsh = { enable = true; };
|
zsh.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment = {
|
||||||
git
|
shells = [ pkgs.zsh ];
|
||||||
gnumake
|
systemPackages = with pkgs;
|
||||||
home-manager
|
[
|
||||||
neovim
|
neovim
|
||||||
telegram-desktop
|
telegram-desktop
|
||||||
usbutils
|
usbutils
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
];
|
];
|
||||||
|
};
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue