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:
34
home/worm/configuration.nix
Normal file
34
home/worm/configuration.nix
Normal 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
15
home/worm/default.nix
Normal 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";
|
||||
}
|
||||
Reference in New Issue
Block a user