Compare commits

..

No commits in common. "d881607cb0b430e614ce2848c40f1e23cb0295a3" and "f4da07c4e6e4df33a0c00e17f80b14eb1e0135a3" have entirely different histories.

3 changed files with 17 additions and 20 deletions

View file

@ -11,4 +11,9 @@ in {
}; };
programs.zsh.enable = true; programs.zsh.enable = true;
home-manager.users.qenya = { config, lib, pkgs, osConfig, ... }: {
home.homeDirectory = osConfig.users.users.qenya.home;
imports = [ ../../home/qenya ];
};
} }

View file

@ -27,19 +27,6 @@
}; };
outputs = inputs@{ self, nixpkgs, home-manager, plasma-manager, nur, agenix, birdsong, ... }: { outputs = inputs@{ self, nixpkgs, home-manager, plasma-manager, nur, agenix, birdsong, ... }: {
# The name of this output type is not standardised. I have picked
# "homeManagerModules" as the discussion here suggests it's the most common:
# https://github.com/nix-community/home-manager/issues/1783
#
# However, note CppNix >= 2.22.3, >= 2.24 has blessed "homeModules":
# https://github.com/NixOS/nix/pull/10858
homeManagerModules."qenya" = { config, lib, pkgs, ... }: {
imports = [
plasma-manager.homeManagerModules.plasma-manager
./home/qenya
];
};
colmena = { colmena = {
meta = { meta = {
nixpkgs = import nixpkgs { system = "x86_64-linux"; }; nixpkgs = import nixpkgs { system = "x86_64-linux"; };
@ -48,7 +35,7 @@
}; };
}; };
defaults = { name, nodes, ... }: { defaults = { name, nodes, config, ... }: {
networking.hostName = name; networking.hostName = name;
nix.settings.experimental-features = "nix-command flakes"; nix.settings.experimental-features = "nix-command flakes";
@ -56,10 +43,7 @@
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
nixpkgs.overlays = [ nur.overlay ]; nixpkgs.overlays = [ nur.overlay ];
home-manager.sharedModules = [ plasma-manager.homeManagerModules.plasma-manager ];
# TODO: make this or something like it work without infinite recursion
# home-manager.users."qenya" = lib.mkIf (config.users.users ? "qenya") self.homeManagerModules."qenya";
home-manager.users."qenya" = self.homeManagerModules."qenya";
imports = [ imports = [
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager

View file

@ -1,11 +1,19 @@
{ config, lib, pkgs, osConfig, ... }: { config, lib, pkgs, osConfig, ... }:
let let
inherit (lib) mkIf;
isPlasma = osConfig.services.desktopManager.plasma6.enable || osConfig.services.xserver.desktopManager.plasma5.enable; isPlasma = osConfig.services.desktopManager.plasma6.enable || osConfig.services.xserver.desktopManager.plasma5.enable;
in in
{ {
programs.plasma.enable = isPlasma; # FIXME: this mkIf is necessary because home/qenya is imported into shaw here:
programs.plasma.overrideConfig = true; # https://github.com/randomnetcat/nix-configs/blob/75d491dc6904475e43a820287edf3cf2f89abcfb/hosts/shaw/birdsong.nix#L74
# shaw doesn't understand programs.plasma because randomcat doesn't import
# plasma-manager, and is unwilling to because none of her machines run KDE.
# This probably can't be fixed until we merge our configs completely.
programs = mkIf isPlasma {
plasma.enable = isPlasma;
plasma.overrideConfig = true;
};
imports = [ ]; imports = [ ];
} }