migrated home-manager from a nixos module to a standalone thing
This commit is contained in:
parent
9c2e1ea464
commit
8aa1d65d73
11 changed files with 25 additions and 27 deletions
20
flake.nix
20
flake.nix
|
|
@ -57,8 +57,6 @@
|
|||
modules = [
|
||||
./hosts/desktops/rotterdam.nix
|
||||
agenix.nixosModules.default
|
||||
kmonad.nixosModules.default
|
||||
home-manager.nixosModules.default
|
||||
{
|
||||
nixpkgs.overlays =
|
||||
[ baduhai-nur.overlay agenix.overlays.default ];
|
||||
|
|
@ -99,6 +97,24 @@
|
|||
};
|
||||
};
|
||||
|
||||
homeConfigurations = {
|
||||
server = home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||
extraSpecialArgs = { inherit inputs; };
|
||||
modules = [
|
||||
./users/servers/user.nix
|
||||
];
|
||||
};
|
||||
|
||||
desktop = home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||
extraSpecialArgs = { inherit inputs; };
|
||||
modules = [
|
||||
./users/desktops/user.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
deploy = {
|
||||
autoRollback = false;
|
||||
magicRollback = false;
|
||||
|
|
|
|||
|
|
@ -21,10 +21,4 @@
|
|||
hashedPassword = "!";
|
||||
};
|
||||
};
|
||||
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
extraSpecialArgs = specialArgs;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,6 +18,4 @@
|
|||
"adbusers"
|
||||
];
|
||||
};
|
||||
|
||||
home-manager.users.user = import ../../../users/desktops/user.nix;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,6 +13,4 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
home-manager.users.user = import ../../../users/servers/user.nix;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ specialArgs, inputs, config, pkgs, lib, ... }:
|
||||
{ inputs, config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
home = {
|
||||
|
|
@ -7,10 +7,6 @@
|
|||
stateVersion = "22.05";
|
||||
sessionVariables = { EDITOR = "micro"; };
|
||||
file = {
|
||||
".config/btop/themes/catppuccin_mocha.theme".source =
|
||||
"${inputs.dotfiles}/.config/btop/themes/catppuccin_mocha.theme";
|
||||
".config/fish/themes/Catppuccin Mocha.theme".source =
|
||||
"${inputs.dotfiles}/.config/fish/themes/Catppuccin Mocha.theme";
|
||||
".config/starship.toml".source =
|
||||
"${inputs.dotfiles}/.config/starship.toml";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ specialArgs, inputs, config, pkgs, lib, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
programs = {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ specialArgs, inputs, config, pkgs, lib, ... }:
|
||||
{ inputs, config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
home = {
|
||||
|
|
@ -16,10 +16,6 @@
|
|||
"${inputs.dotfiles}/.config/MangoHud/MangoHud.conf";
|
||||
".config/solvespace/settings.json".source =
|
||||
"${inputs.dotfiles}/.config/solvespace/settings.json";
|
||||
".local/share/color-schemes/CatppuccinLatte.colors".source =
|
||||
"${inputs.dotfiles}/.local/share/color-schemes/CatppuccinLatte.colors";
|
||||
".local/share/color-schemes/CatppuccinMocha.colors".source =
|
||||
"${inputs.dotfiles}/.local/share/color-schemes/CatppuccinMocha.colors";
|
||||
# Autostart programs
|
||||
".config/autostart/koi.desktop".source =
|
||||
config.lib.file.mkOutOfStoreSymlink
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ specialArgs, inputs, config, pkgs, lib, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
fonts.fontconfig.enable = true;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ specialArgs, inputs, config, pkgs, lib, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
services = { kdeconnect.enable = true; };
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ specialArgs, inputs, config, pkgs, lib, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ specialArgs, inputs, config, pkgs, lib, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue