Compare commits
2 Commits
2745f32d73
...
ee8e91a43e
| Author | SHA1 | Date |
|---|---|---|
|
|
ee8e91a43e | |
|
|
192166aebc |
|
|
@ -3,7 +3,7 @@ _: {
|
||||||
# package = pkgs.nix;
|
# package = pkgs.nix;
|
||||||
settings = {
|
settings = {
|
||||||
substituters = [
|
substituters = [
|
||||||
"http://nixcache.odie.intranet"
|
"http://nixcache.odie.home.arpa"
|
||||||
"https://nix-community.cachix.org"
|
"https://nix-community.cachix.org"
|
||||||
"https://cache.nixos.org/"
|
"https://cache.nixos.org/"
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,11 @@
|
||||||
nix = {
|
nix = {
|
||||||
settings = {
|
settings = {
|
||||||
substituters = [
|
substituters = [
|
||||||
"http://nixcache.odie.intranet"
|
"http://nixcache.odie.home.arpa"
|
||||||
"https://nix-community.cachix.org"
|
"https://nix-community.cachix.org"
|
||||||
];
|
];
|
||||||
trusted-public-keys = [
|
trusted-public-keys = [
|
||||||
"nixcache.odie.intranet:2j5qAVmtBUSZMPWlIRS8Gn0Il9tbotJ9c2y43N0RLKU="
|
"nixcache.odie.home.arpa:2j5qAVmtBUSZMPWlIRS8Gn0Il9tbotJ9c2y43N0RLKU="
|
||||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
./programs
|
./programs
|
||||||
./ssh
|
./ssh
|
||||||
./power-management
|
./power-management
|
||||||
./binary-cache
|
#./binary-cache
|
||||||
];
|
];
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,9 @@
|
||||||
moduleInputs @ {flakeLib, ...}: let
|
moduleInputs @ {flakeLib, inputs, ...}: let
|
||||||
config = flakeLib.mkHomeManagerDefaults moduleInputs;
|
config = flakeLib.mkHomeManagerDefaults moduleInputs;
|
||||||
in {
|
in {
|
||||||
|
imports = [
|
||||||
|
inputs.home-manager.nixosModules.home-manager
|
||||||
|
];
|
||||||
home-manager = {
|
home-manager = {
|
||||||
inherit (config) extraSpecialArgs useGlobalPkgs useUserPackages;
|
inherit (config) extraSpecialArgs useGlobalPkgs useUserPackages;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./nginx
|
./nginx
|
||||||
./binary-cache
|
#./binary-cache
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, lib, pkgs, vars, inputs, ... }:
|
{ config, lib, vars, inputs, ... }:
|
||||||
let
|
let
|
||||||
inherit (vars) username hostName;
|
inherit (vars) username hostName;
|
||||||
in
|
in
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
outputs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = [
|
||||||
|
outputs.homeManagerModules.base
|
||||||
|
outputs.homeManagerModules.user
|
||||||
|
outputs.homeManagerModules.shell
|
||||||
|
outputs.homeManagerModules.development
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
@ -6,9 +6,10 @@
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
inputs.home-manager.nixosModules.home-manager
|
#inputs.home-manager.nixosModules.home-manager
|
||||||
../../../modules/nixos/base
|
outputs.nixosModules.home-manager
|
||||||
../../../modules/nixos/wsl
|
outputs.nixosModules.base
|
||||||
|
outputs.nixosModules.wsl
|
||||||
];
|
];
|
||||||
|
|
||||||
wsl.enable = true;
|
wsl.enable = true;
|
||||||
|
|
@ -18,16 +19,11 @@
|
||||||
inherit (vars) hostName domain;
|
inherit (vars) hostName domain;
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager = flakeLib.mkHomeNixosModule {
|
home-manager.extraSpecialArgs = {
|
||||||
inherit inputs outputs vars flakeLib;
|
inherit inputs outputs vars;
|
||||||
users.${vars.username} = {
|
|
||||||
imports = [
|
|
||||||
../../../modules/home-manager/base
|
|
||||||
../../../modules/home-manager/development
|
|
||||||
../../../modules/home-manager/shell
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
home-manager.users = flakeLib.mkNixosHomeConfiguration {inherit vars;};
|
||||||
|
|
||||||
|
|
||||||
system.stateVersion = "23.11";
|
system.stateVersion = "23.11";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue