Use unstable home-manager for unstable machines
This commit is contained in:
parent
02a77c5cb2
commit
5e9d9181b7
21
flake.lock
21
flake.lock
|
@ -100,6 +100,26 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"home-manager-unstable": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs-unstable"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1681586243,
|
||||||
|
"narHash": "sha256-vdP79IZuDZVNSl4RN1LgEuab1Tkbv4gCxiE8VLdRf7U=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "home-manager",
|
||||||
|
"rev": "40ebb62101c83de81e5fd7c3cfe5cea2ed21b1ad",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "home-manager",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"infinisilSystem": {
|
"infinisilSystem": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
@ -354,6 +374,7 @@
|
||||||
"bang-evaluator": "bang-evaluator",
|
"bang-evaluator": "bang-evaluator",
|
||||||
"flake-utils": "flake-utils",
|
"flake-utils": "flake-utils",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
|
"home-manager-unstable": "home-manager-unstable",
|
||||||
"infinisilSystem": "infinisilSystem",
|
"infinisilSystem": "infinisilSystem",
|
||||||
"krops": "krops",
|
"krops": "krops",
|
||||||
"nix-pre-commit-hooks": "nix-pre-commit-hooks",
|
"nix-pre-commit-hooks": "nix-pre-commit-hooks",
|
||||||
|
|
|
@ -10,6 +10,8 @@
|
||||||
|
|
||||||
home-manager.url = "github:nix-community/home-manager/release-22.11";
|
home-manager.url = "github:nix-community/home-manager/release-22.11";
|
||||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
home-manager-unstable.url = "github:nix-community/home-manager";
|
||||||
|
home-manager-unstable.inputs.nixpkgs.follows = "nixpkgs-unstable";
|
||||||
|
|
||||||
krops.url = "github:Mic92/krops";
|
krops.url = "github:Mic92/krops";
|
||||||
krops.inputs.flake-utils.follows = "flake-utils";
|
krops.inputs.flake-utils.follows = "flake-utils";
|
||||||
|
@ -196,7 +198,8 @@
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
] ++ (with inputs; [
|
] ++ (with inputs; [
|
||||||
home-manager.nixosModules.home-manager
|
# Use newest home-manager for hosts that use unstable, otherwise there are conflicts
|
||||||
|
(if nixpkgs == inputs.nixpkgs-unstable then home-manager-unstable else home-manager).nixosModules.home-manager
|
||||||
sops-nix.nixosModules.sops
|
sops-nix.nixosModules.sops
|
||||||
|
|
||||||
bang-evaluator.nixosModules.bang-evaluator
|
bang-evaluator.nixosModules.bang-evaluator
|
||||||
|
|
|
@ -56,7 +56,15 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
exa.enable = true;
|
exa = {
|
||||||
|
enable = true;
|
||||||
|
} // lib.optionalAttrs (pkgs.lib.versionAtLeast (pkgs.lib.substring 0 5 pkgs.lib.version) "23.05") {
|
||||||
|
# FIXME: remove condition with 23.05
|
||||||
|
git = true;
|
||||||
|
extraOptions = [
|
||||||
|
"--binary" # prefer MiB over MB etc.
|
||||||
|
];
|
||||||
|
};
|
||||||
nix-index.enable = true;
|
nix-index.enable = true;
|
||||||
starship = {
|
starship = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -82,16 +90,18 @@ in
|
||||||
dcauto = dcauto;
|
dcauto = dcauto;
|
||||||
dcsd = "dynamic-colors switch solarized-dark";
|
dcsd = "dynamic-colors switch solarized-dark";
|
||||||
dcsl = "dynamic-colors switch solarized-light";
|
dcsl = "dynamic-colors switch solarized-light";
|
||||||
exa = "exa --git --binary";
|
|
||||||
ip = "ip --color=auto";
|
ip = "ip --color=auto";
|
||||||
ipy = "ipython3";
|
ipy = "ipython3";
|
||||||
|
userctl = "systemctl --user";
|
||||||
|
vim = "nvim";
|
||||||
|
vimdiff = "nvim -d";
|
||||||
|
} // lib.optionalAttrs (pkgs.lib.versionOlder (pkgs.lib.substring 0 5 pkgs.lib.version) "23.05") {
|
||||||
|
# FIXME: remove with 23.05
|
||||||
|
exa = "exa --git --binary";
|
||||||
l = "exa -l";
|
l = "exa -l";
|
||||||
la = "exa -la";
|
la = "exa -la";
|
||||||
ll = "exa -l";
|
ll = "exa -l";
|
||||||
ls = "exa";
|
ls = "exa";
|
||||||
userctl = "systemctl --user";
|
|
||||||
vim = "nvim";
|
|
||||||
vimdiff = "nvim -d";
|
|
||||||
};
|
};
|
||||||
initExtra = lib.mkMerge [
|
initExtra = lib.mkMerge [
|
||||||
(lib.mkBefore ''
|
(lib.mkBefore ''
|
||||||
|
|
Loading…
Reference in a new issue