1
0
Fork 0
nix-system-configurations/nixos/graphical-x86_64/base.nix

56 lines
1.3 KiB
Nix

# SPDX-FileCopyrightText: 2025 Ethan Reece <contact@ethanreece.com>
#
# SPDX-License-Identifier: MIT
# https://gitlab.com/hmajid2301/nixicle
# TODO: Fix JetBrains Mono Nerd Font not loading
{
inputs,
flakeConfig,
module-name,
pkgs,
system,
...
}:
let
users = {
nixos = rec {
username = "nixos";
homeDirectory = "/home/${username}";
};
root = rec {
username = "root";
homeDirectory = "/root";
};
};
in
{
imports = [ ../base.nix ];
flakeSettings.graphical = true;
home-manager = {
extraSpecialArgs = { inherit inputs system flakeConfig; };
users.${users.nixos.username} = with users.nixos; {
imports = [
../../home-manager/installer/graphical-x86_64.nix
{ home = { inherit username homeDirectory; }; }
];
};
users.${users.root.username} = with users.root; {
imports = [
../../home-manager/personal/root.nix
{ home = { inherit username homeDirectory; }; }
];
};
};
users.users.${users.nixos.username} = with users.nixos; {
initialPassword = username;
isNormalUser = true;
shell = pkgs.nushell;
openssh.authorizedKeys.keys = flakeConfig.profiles.personal.sshKeys;
};
networking.hostName = module-name;
system = {
stateVersion = "23.11";
};
}