Compare commits
2 Commits
cf2c6fc646
...
91bb55c48f
Author | SHA1 | Date | |
---|---|---|---|
91bb55c48f | |||
3e517b1961 |
53
flake.nix
53
flake.nix
@@ -44,6 +44,7 @@
|
|||||||
"${hostname}" = nixpkgs.lib.nixosSystem {
|
"${hostname}" = nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = { inherit inputs; };
|
specialArgs = { inherit inputs; };
|
||||||
modules = [
|
modules = [
|
||||||
|
home-manager.nixosModules.home-manager
|
||||||
nur.modules.nixos.default
|
nur.modules.nixos.default
|
||||||
|
|
||||||
./system/common.nix
|
./system/common.nix
|
||||||
@@ -53,43 +54,28 @@
|
|||||||
{
|
{
|
||||||
system.stateVersion = stateVersion;
|
system.stateVersion = stateVersion;
|
||||||
networking.hostName = hostname;
|
networking.hostName = hostname;
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
|
home-manager.useGlobalPkgs = true;
|
||||||
|
home-manager.useUserPackages = true;
|
||||||
|
|
||||||
makeHome = hostname:
|
home-manager.users.${username} = {
|
||||||
let
|
imports = [
|
||||||
extractModules = map
|
./home/${hostname}.nix
|
||||||
(module:
|
./home/common.nix
|
||||||
let hm = module.homeManagerModules;
|
] ++ (map
|
||||||
in hm.${lib.head (lib.attrNames hm)});
|
(module:
|
||||||
in
|
let hm = module.homeManagerModules;
|
||||||
{
|
in hm.${lib.head (lib.attrNames hm)})
|
||||||
"${username}@${hostname}" = home-manager.lib.homeManagerConfiguration
|
[ nixvim nethack plasma-manager ]);
|
||||||
{
|
|
||||||
extraSpecialArgs = { inherit inputs; };
|
|
||||||
pkgs = import nixpkgs {
|
|
||||||
system = "x86_64-linux";
|
|
||||||
overlays = [ nur.overlays.default ];
|
|
||||||
};
|
|
||||||
|
|
||||||
modules = (extractModules [
|
home = {
|
||||||
nixvim
|
username = username;
|
||||||
nethack
|
homeDirectory = "/home/${username}";
|
||||||
plasma-manager
|
stateVersion = stateVersion;
|
||||||
]) ++ [
|
};
|
||||||
nur.modules.homeManager.default
|
|
||||||
|
|
||||||
./home/${hostname}.nix
|
news.display = "show";
|
||||||
./home/common.nix
|
};
|
||||||
|
|
||||||
{
|
|
||||||
news.display = "show";
|
|
||||||
home.username = username;
|
|
||||||
home.homeDirectory = "/home/${username}";
|
|
||||||
home.stateVersion = stateVersion;
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
@@ -98,6 +84,5 @@
|
|||||||
forEachHost = fn: lib.mergeAttrsList (map fn hostnames);
|
forEachHost = fn: lib.mergeAttrsList (map fn hostnames);
|
||||||
in {
|
in {
|
||||||
nixosConfigurations = forEachHost makeSystem;
|
nixosConfigurations = forEachHost makeSystem;
|
||||||
homeConfigurations = forEachHost makeHome;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@@ -48,8 +48,6 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
packages = with pkgs; let
|
packages = with pkgs; let
|
||||||
sent' = sent.overrideAttrs (oldAttrs: {
|
sent' = sent.overrideAttrs (oldAttrs: {
|
||||||
@@ -88,9 +86,5 @@
|
|||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
ANI_CLI_PLAYER = "mpv";
|
ANI_CLI_PLAYER = "mpv";
|
||||||
};
|
};
|
||||||
|
|
||||||
file = {
|
|
||||||
".config/nixpkgs/config.nix".text = "{ allowUnfree = true; }";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@@ -148,4 +148,6 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
gtk.gtk2.force = true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user