This commit is contained in:
2025-05-14 09:33:08 -05:00
parent 239c37bf98
commit 4da409aabf
14 changed files with 218 additions and 46 deletions

View File

@@ -1,6 +1,11 @@
{
imports = [
#./packages.nix
./hjem.nix
./network.nix
./packages.nix
./timezone.nix
./nix.nix
./pipewire.nix
./program.nix
./user.nix
./ssh.nix

20
modules/core/hjem.nix Normal file
View File

@@ -0,0 +1,20 @@
{
inputs,
username,
...
}:
{
imports = [ inputs.hjem.nixosModules.default ];
config.hjem = {
extraModules = [inputs.hjem-rum.hjemModules.default];
users.${username} = {
enable = true;
directory = "/home/${username}";
user = username;
};
clobberByDefault = true;
};
}

4
modules/core/network.nix Normal file
View File

@@ -0,0 +1,4 @@
{
networking.hostName = "poslop-nixvm2";
networking.networkmanager.enable = true;
}

5
modules/core/nix.nix Normal file
View File

@@ -0,0 +1,5 @@
{
nix.settings = {
experimental-features = "nix-command flakes";
};
}

View File

@@ -0,0 +1,6 @@
{
services.pipewire = {
enable = true;
pulse.enable = true;
};
}

View File

@@ -0,0 +1,3 @@
{
time.timeZone = "America/Chicago";
}

View File

@@ -1,25 +1,10 @@
{
pkgs,
inputs,
username,
host,
pkgs,
...
}:
{
imports = [ inputs.home-manager.nixosModules.home-manager ];
home-manager = {
useUserPackages = true;
useGlobalPkgs = true;
extraSpecialArgs = { inherit inputs username; };
users.${username} = {
imports = [ ./../home ];
home.username = "${username}";
home.homeDirectory = "/home/${username}";
home.stateVersion = "24.11";
programs.home-manager.enable = true;
};
};
{
users.users.${username} = {
isNormalUser = true;
description = "${username}";

View File

@@ -4,5 +4,6 @@
./zsh
./git.nix
./packages.nix
./neovim.nix
];
}

8
modules/home/neovim.nix Normal file
View File

@@ -0,0 +1,8 @@
{ pkgs, inputs, ... }:
{
programs.neovim = {
enable = true;
vimAlias = true;
viAlias = true;
};
}

View File

@@ -2,9 +2,10 @@
{
home.packages = with pkgs; [
git
zsh
neofetch
btop
zsh
wl-clipboard
kitty
vim

View File

@@ -0,0 +1,6 @@
{
programs.zsh.plugins = [
{
}
}