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

158
flake.lock generated
View File

@@ -34,6 +34,21 @@
} }
}, },
"flake-compat": { "flake-compat": {
"locked": {
"lastModified": 1733328505,
"narHash": "sha256-NeCCThCEP3eCl2l/+27kNNK7QrwZB1IJCrXfrbv5oqU=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "ff81ac966bb2cae68946d5ed5fc4994f96d0ffec",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"flake-compat_2": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1696426674, "lastModified": 1696426674,
@@ -49,6 +64,24 @@
"type": "github" "type": "github"
} }
}, },
"flake-parts": {
"inputs": {
"nixpkgs-lib": "nixpkgs-lib"
},
"locked": {
"lastModified": 1743550720,
"narHash": "sha256-hIshGgKZCgWh6AYJpJmRgFdR3WUbkY04o82X05xqQiY=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "c621e8422220273271f52058f618c94e405bb0f5",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"gitignore": { "gitignore": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@@ -71,23 +104,67 @@
"type": "github" "type": "github"
} }
}, },
"home-manager": { "hjem": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
"nixpkgs" "nixpkgs"
] ]
}, },
"locked": { "locked": {
"lastModified": 1745802917, "lastModified": 1747038076,
"narHash": "sha256-hI7BmIwKagCJlQdVgwxs1sLY2d8i97srcqT+OrhBDao=", "narHash": "sha256-vy+My+8yRRu0OG6XBEPDR8ebfrPS4iuruyQ1ZUyHq6s=",
"owner": "nix-community", "owner": "feel-co",
"repo": "home-manager", "repo": "hjem",
"rev": "9c46dc881c2afcb50ac9ae9f1c36b2a4ebba3c8a", "rev": "7d674eaded6586554910e62baed5eadad6496315",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nix-community", "owner": "feel-co",
"repo": "home-manager", "repo": "hjem",
"type": "github"
}
},
"hjem-rum": {
"inputs": {
"hjem": "hjem_2",
"ndg": "ndg",
"nixpkgs": [
"nixpkgs"
],
"treefmt-nix": "treefmt-nix"
},
"locked": {
"lastModified": 1747217237,
"narHash": "sha256-rYWxmjGpdGYlJd8gwripamC3t9mCihBDZJiz84CrUHI=",
"owner": "snugnug",
"repo": "hjem-rum",
"rev": "1d3bf26bb71dced495a99e05a0141db24c49ca6f",
"type": "github"
},
"original": {
"owner": "snugnug",
"repo": "hjem-rum",
"type": "github"
}
},
"hjem_2": {
"inputs": {
"nixpkgs": [
"hjem-rum",
"nixpkgs"
]
},
"locked": {
"lastModified": 1746355589,
"narHash": "sha256-LguszqsDBTtdBxblQTtN7vOAYmfoe43aHkB8aK1dChE=",
"owner": "feel-co",
"repo": "hjem",
"rev": "77b37eeb583d43e1c723119a69c906235174ce57",
"type": "github"
},
"original": {
"owner": "feel-co",
"repo": "hjem",
"type": "github" "type": "github"
} }
}, },
@@ -350,6 +427,30 @@
"type": "github" "type": "github"
} }
}, },
"ndg": {
"inputs": {
"flake-compat": "flake-compat",
"flake-parts": "flake-parts",
"nixpkgs": [
"hjem-rum",
"nixpkgs"
]
},
"locked": {
"lastModified": 1746459301,
"narHash": "sha256-QcAaxXdcPMqY5IppLa9fHCq3Rzq597DQqq8s2fKuE0k=",
"owner": "feel-co",
"repo": "ndg",
"rev": "2864a9901102a86db82157f72998809c570c36bb",
"type": "github"
},
"original": {
"owner": "feel-co",
"ref": "v2",
"repo": "ndg",
"type": "github"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1745930157, "lastModified": 1745930157,
@@ -366,6 +467,21 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs-lib": {
"locked": {
"lastModified": 1743296961,
"narHash": "sha256-b1EdN3cULCqtorQ4QeWgLMrd5ZGOjLSLemfa00heasc=",
"owner": "nix-community",
"repo": "nixpkgs.lib",
"rev": "e4822aea2a6d1cdd36653c134cacfd64c97ff4fa",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nixpkgs.lib",
"type": "github"
}
},
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1745930157, "lastModified": 1745930157,
@@ -384,7 +500,7 @@
}, },
"pre-commit-hooks": { "pre-commit-hooks": {
"inputs": { "inputs": {
"flake-compat": "flake-compat", "flake-compat": "flake-compat_2",
"gitignore": "gitignore", "gitignore": "gitignore",
"nixpkgs": [ "nixpkgs": [
"hyprland", "hyprland",
@@ -407,7 +523,8 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"home-manager": "home-manager", "hjem": "hjem",
"hjem-rum": "hjem-rum",
"hyprland": "hyprland", "hyprland": "hyprland",
"nixpkgs": "nixpkgs_2" "nixpkgs": "nixpkgs_2"
} }
@@ -427,6 +544,27 @@
"type": "github" "type": "github"
} }
}, },
"treefmt-nix": {
"inputs": {
"nixpkgs": [
"hjem-rum",
"nixpkgs"
]
},
"locked": {
"lastModified": 1746216483,
"narHash": "sha256-4h3s1L/kKqt3gMDcVfN8/4v2jqHrgLIe4qok4ApH5x4=",
"owner": "numtide",
"repo": "treefmt-nix",
"rev": "29ec5026372e0dec56f890e50dbe4f45930320fd",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "treefmt-nix",
"type": "github"
}
},
"xdph": { "xdph": {
"inputs": { "inputs": {
"hyprland-protocols": [ "hyprland-protocols": [

View File

@@ -3,8 +3,13 @@
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
hyprland.url = "github:hyprwm/Hyprland"; hyprland.url = "github:hyprwm/Hyprland";
home-manager = { hjem = {
url = "github:nix-community/home-manager"; url = "github:feel-co/hjem";
inputs.nixpkgs.follows = "nixpkgs";
};
hjem-rum = {
url = "github:snugnug/hjem-rum";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
}; };

View File

@@ -1,10 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
nix.settings = {
experimental-features = "nix-command flakes";
};
imports = imports =
[ [
./hardware-configuration.nix ./hardware-configuration.nix
@@ -15,17 +11,6 @@
boot.loader.grub.enable = true; boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/vda"; boot.loader.grub.device = "/dev/vda";
networking.hostName = "poslop-nixvm2";
networking.networkmanager.enable = true;
time.timeZone = "America/Chicago";
services.printing.enable = true;
services.pipewire = {
enable = true;
pulse.enable = true;
};
services.spice-vdagentd.enable = true; services.spice-vdagentd.enable = true;

View File

@@ -1,6 +1,11 @@
{ {
imports = [ imports = [
#./packages.nix ./hjem.nix
./network.nix
./packages.nix
./timezone.nix
./nix.nix
./pipewire.nix
./program.nix ./program.nix
./user.nix ./user.nix
./ssh.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, 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} = { users.users.${username} = {
isNormalUser = true; isNormalUser = true;
description = "${username}"; description = "${username}";

View File

@@ -4,5 +4,6 @@
./zsh ./zsh
./git.nix ./git.nix
./packages.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; [ home.packages = with pkgs; [
git
zsh
neofetch neofetch
btop btop
zsh
wl-clipboard wl-clipboard
kitty kitty
vim vim

View File

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