spun out user config and home config.

This commit is contained in:
2026-02-13 13:35:01 -06:00
parent f1c627e392
commit efb8a6efe5
6 changed files with 82 additions and 25 deletions

View File

@@ -5,8 +5,6 @@
{ inputs, lib, pkgs, self, ... }:
{
flake.nixosModules.lily-desktop = { pkgs, ... }: {
imports = [ ];
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
@@ -62,25 +60,17 @@ flake.nixosModules.lily-desktop = { pkgs, ... }: {
# Enable touchpad support (enabled default in most desktopManager).
# services.libinput.enable = true;
# Define a user account. Don't forget to set a password with passwd.
users.users.lily = {
isNormalUser = true;
extraGroups = [ "wheel" "lily" ]; # Enable sudo for the user.
packages = with pkgs; [
tree
git
vim
];
};
users.groups.lily = { };
programs.firefox.enable = true;
# List packages installed in system profile.
# You can use https://search.nixos.org/ to find more packages (and options).
# environment.systemPackages = with pkgs; [
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
# wget
# ];
environment.systemPackages = with pkgs; [
tree
git
vim
wget
home-manager
];
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.

View File

@@ -3,6 +3,7 @@
flake.nixosConfigurations.lily-desktop = inputs.nixpkgs.lib.nixosSystem {
modules = [
self.nixosModules.lily-desktop
self.nixosModules.lily
];
};
}

View File

@@ -0,0 +1,29 @@
{inputs, self, ...}:{
flake.homeConfigurations."lily" = inputs.home-manager.lib.homeManagerConfiguration {
pkgs = import inputs.nixpkgs { system = "x86_64-linux"; };
modules = [ self.homeModules.lily ];
extraSpecialArgs = { inherit inputs; };
};
flake.homeModules.lily = { pkgs, ... }:{
home = {
username = "lily";
homeDirectory = "/home/lily";
stateVersion = "25.05";
packages = [ ];
file = { };
sessionVariables = { };
};
programs = {
home-manager.enable = true;
bash.enable = true;
git = {
enable = true;
settings.user = {
name = "Lily Anderson";
email = "lilylanderson@zoho.com";
};
lfs.enable = true;
};
};
};
}

View File

@@ -0,0 +1,11 @@
{
flake.nixosModules.lily = { pkgs, ... }: {
users.users.lily = {
isNormalUser = true;
description = "Lily Luna Anderson";
extraGroups = [ "wheel" "lily" ];
packages = with pkgs; [ ];
};
users.groups.lily = { };
};
}