hjem
This commit is contained in:
@@ -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
20
modules/core/hjem.nix
Normal 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
4
modules/core/network.nix
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
networking.hostName = "poslop-nixvm2";
|
||||
networking.networkmanager.enable = true;
|
||||
}
|
||||
5
modules/core/nix.nix
Normal file
5
modules/core/nix.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
nix.settings = {
|
||||
experimental-features = "nix-command flakes";
|
||||
};
|
||||
}
|
||||
6
modules/core/pipewire.nix
Normal file
6
modules/core/pipewire.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
}
|
||||
3
modules/core/timezone.nix
Normal file
3
modules/core/timezone.nix
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
time.timeZone = "America/Chicago";
|
||||
}
|
||||
@@ -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}";
|
||||
|
||||
@@ -4,5 +4,6 @@
|
||||
./zsh
|
||||
./git.nix
|
||||
./packages.nix
|
||||
./neovim.nix
|
||||
];
|
||||
}
|
||||
|
||||
8
modules/home/neovim.nix
Normal file
8
modules/home/neovim.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{ pkgs, inputs, ... }:
|
||||
{
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
vimAlias = true;
|
||||
viAlias = true;
|
||||
};
|
||||
}
|
||||
@@ -2,9 +2,10 @@
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
git
|
||||
zsh
|
||||
neofetch
|
||||
btop
|
||||
zsh
|
||||
wl-clipboard
|
||||
kitty
|
||||
vim
|
||||
|
||||
6
modules/home/zsh/plugins.nix
Normal file
6
modules/home/zsh/plugins.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
programs.zsh.plugins = [
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user