Refactor to use Home Manager

This commit is contained in:
Oliver Davies 2025-07-22 20:55:21 +01:00
parent 21a8bd3cb3
commit bac57f1493
4 changed files with 34 additions and 12 deletions

22
flake.lock generated
View file

@ -18,6 +18,27 @@
"type": "github"
}
},
"home-manager": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1753180535,
"narHash": "sha256-KEtlzMs2O7FDvciFtjk9W4hyau013Pj9qZNK9a0PxEc=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "847711c7ffa9944b0c5c39a8342ac8eb6a9f9abc",
"type": "github"
},
"original": {
"owner": "nix-community",
"ref": "master",
"repo": "home-manager",
"type": "github"
}
},
"import-tree": {
"locked": {
"lastModified": 1752730890,
@ -67,6 +88,7 @@
"root": {
"inputs": {
"flake-parts": "flake-parts",
"home-manager": "home-manager",
"import-tree": "import-tree",
"nixpkgs": "nixpkgs"
}

View file

@ -1,6 +1,12 @@
{
inputs = {
flake-parts.url = "github:hercules-ci/flake-parts";
home-manager = {
inputs.nixpkgs.follows = "nixpkgs";
url = "github:nix-community/home-manager/master";
};
import-tree.url = "github:vic/import-tree";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};

View file

@ -1,8 +1,5 @@
{
flake.modules.nixos.pc = { pkgs, ... }:
{
environment.systemPackages = with pkgs; [
git
];
};
flake.modules.homeManager.base {
programs.git.enable = true;
};
}

View file

@ -1,8 +1,5 @@
{
flake.modules.nixos.pc = { pkgs, ... }:
{
environment.systemPackages = with pkgs; [
tmux
];
};
flake.modules.homeManager.base = {
programs.tmux.enable = true;
};
}