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 = [
|
modules = [
|
||||||
./hosts/desktops/rotterdam.nix
|
./hosts/desktops/rotterdam.nix
|
||||||
agenix.nixosModules.default
|
agenix.nixosModules.default
|
||||||
kmonad.nixosModules.default
|
|
||||||
home-manager.nixosModules.default
|
|
||||||
{
|
{
|
||||||
nixpkgs.overlays =
|
nixpkgs.overlays =
|
||||||
[ baduhai-nur.overlay agenix.overlays.default ];
|
[ 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 = {
|
deploy = {
|
||||||
autoRollback = false;
|
autoRollback = false;
|
||||||
magicRollback = false;
|
magicRollback = false;
|
||||||
|
|
|
||||||
|
|
@ -21,10 +21,4 @@
|
||||||
hashedPassword = "!";
|
hashedPassword = "!";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager = {
|
|
||||||
useGlobalPkgs = true;
|
|
||||||
useUserPackages = true;
|
|
||||||
extraSpecialArgs = specialArgs;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,4 @@
|
||||||
"adbusers"
|
"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 = {
|
home = {
|
||||||
|
|
@ -7,10 +7,6 @@
|
||||||
stateVersion = "22.05";
|
stateVersion = "22.05";
|
||||||
sessionVariables = { EDITOR = "micro"; };
|
sessionVariables = { EDITOR = "micro"; };
|
||||||
file = {
|
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 =
|
".config/starship.toml".source =
|
||||||
"${inputs.dotfiles}/.config/starship.toml";
|
"${inputs.dotfiles}/.config/starship.toml";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ specialArgs, inputs, config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
programs = {
|
programs = {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ specialArgs, inputs, config, pkgs, lib, ... }:
|
{ inputs, config, pkgs, lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
home = {
|
home = {
|
||||||
|
|
@ -16,10 +16,6 @@
|
||||||
"${inputs.dotfiles}/.config/MangoHud/MangoHud.conf";
|
"${inputs.dotfiles}/.config/MangoHud/MangoHud.conf";
|
||||||
".config/solvespace/settings.json".source =
|
".config/solvespace/settings.json".source =
|
||||||
"${inputs.dotfiles}/.config/solvespace/settings.json";
|
"${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
|
# Autostart programs
|
||||||
".config/autostart/koi.desktop".source =
|
".config/autostart/koi.desktop".source =
|
||||||
config.lib.file.mkOutOfStoreSymlink
|
config.lib.file.mkOutOfStoreSymlink
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ specialArgs, inputs, config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
fonts.fontconfig.enable = true;
|
fonts.fontconfig.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ specialArgs, inputs, config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
services = { kdeconnect.enable = true; };
|
services = { kdeconnect.enable = true; };
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ specialArgs, inputs, config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ specialArgs, inputs, config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue