feat(home,worm): "worm" configuration

This configuration will be used for things like servers, where desktop
environments is not necessary
This commit is contained in:
Guz
2025-02-12 11:26:47 -03:00
parent 3a3cfe9325
commit 6210ec6cc9
2 changed files with 49 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
{
config,
inputs,
pkgs,
self,
...
}: {
# Users
users.users."guz" = {
useDefaultShell = true;
isNormalUser = true;
hashedPasswordFile = builtins.toString config.sops.secrets."guz/password".path;
extraGroups = ["wheel" "guz"];
};
users.groups."guz" = {};
# Home-manager configurations for when it is used as a NixOS module.
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.backupFileExtension = "bkp";
home-manager.extraSpecialArgs = {inherit inputs self;};
home-manager.users.guz = import ./default.nix;
services.flatpak.enable = true;
programs.zsh.enable = true;
users.users."guz".shell = pkgs.zsh;
# Xremap run-as-user
hardware.uinput.enable = true;
users.groups.uinput.members = ["guz"];
users.groups.input.members = ["guz"];
}

15
home/worm/default.nix Normal file
View File

@@ -0,0 +1,15 @@
{self, ...}: {
home.username = "guz";
home.homeDirectory = "/home/guz";
imports = [
self.homeManagerModules.devkit
];
# The *state version* indicates which default
# settings are in effect and will therefore help avoid breaking
# program configurations. Switching to a higher state version
# typically requires performing some manual steps, such as data
# conversion or moving files.
home.stateVersion = "24.11";
}