nhms works again
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
{ inputs, ... }:
|
||||
let
|
||||
username = "john";
|
||||
hostname = "john-pc-ubuntu";
|
||||
in
|
||||
{
|
||||
@@ -20,6 +21,9 @@ in
|
||||
|
||||
shell.program = "zsh";
|
||||
|
||||
home.username = "${username}";
|
||||
home.homeDirectory = "/home/${username}";
|
||||
|
||||
home.packages = with pkgs; [
|
||||
nixos-rebuild
|
||||
(writeShellScriptBin "test-push" ''
|
||||
|
||||
@@ -17,20 +17,12 @@
|
||||
};
|
||||
# https://github.com/Doc-Steve/dendritic-design-with-flake-parts/wiki/Dendritic_Aspects#multi-context-aspect
|
||||
home-manager.users."${username}" = {
|
||||
home.username = "${username}";
|
||||
home.homeDirectory = "/home/${username}";
|
||||
imports = [
|
||||
self.modules.homeManager."${username}"
|
||||
# self.modules.homeManager.shell-tools
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
homeManager."${username}" = {
|
||||
home.username = "${username}";
|
||||
home.homeDirectory = "/home/${username}";
|
||||
# TODO: This doesn't get merged properly when the factory gets used
|
||||
# imports = with self.modules.homeManager; [
|
||||
# shell-tools
|
||||
# ];
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -3,7 +3,6 @@
|
||||
flake.modules.nixos.lxc = { pkgs, lib, ...}: {
|
||||
imports = with inputs.self.modules.nixos; [
|
||||
({ modulesPath, ... }: { imports = [ "${modulesPath}/virtualisation/proxmox-lxc.nix" ]; })
|
||||
ssh
|
||||
];
|
||||
nixpkgs.hostPlatform = lib.mkForce "x86_64-linux";
|
||||
system.stateVersion = "25.11";
|
||||
|
||||
@@ -7,9 +7,10 @@ in
|
||||
nixos.zsh = { pkgs, ... }: {
|
||||
users.users."${username}".shell = pkgs.zsh;
|
||||
programs.zsh.enable = true;
|
||||
home-manager.sharedModules = [
|
||||
inputs.self.modules.homeManager.zsh
|
||||
];
|
||||
# Already being imported by the john.nix module
|
||||
# home-manager.sharedModules = [
|
||||
# inputs.self.modules.homeManager.zsh
|
||||
# ];
|
||||
};
|
||||
|
||||
homeManager.zsh = { pkgs, config, ... }: {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ inputs, lib, ... }:
|
||||
{ inputs, ... }:
|
||||
let
|
||||
username = "john";
|
||||
in
|
||||
@@ -17,22 +17,17 @@ in
|
||||
];
|
||||
};
|
||||
|
||||
modules = lib.recursiveUpdate
|
||||
(inputs.self.factory.user username true)
|
||||
{
|
||||
#
|
||||
# NixOS
|
||||
#
|
||||
modules = {
|
||||
nixos."${username}" = {
|
||||
imports = [
|
||||
(inputs.self.factory.user username true).nixos."${username}"
|
||||
];
|
||||
users.users."${username}" = {
|
||||
openssh.authorizedKeys.keys = inputs.self.meta.users."${username}".authorizedKeys;
|
||||
extraGroups = [ "docker" ];
|
||||
};
|
||||
};
|
||||
|
||||
#
|
||||
# Home Manager
|
||||
#
|
||||
homeManager."${username}" = with inputs.self.meta.users."${username}"; {
|
||||
home.stateVersion = "25.11";
|
||||
xdg.enable = true;
|
||||
|
||||
Reference in New Issue
Block a user