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