homemmanegr

This commit is contained in:
2025-05-01 15:05:03 -05:00
parent ff074185b6
commit bb53e31d83
10 changed files with 66 additions and 10 deletions

11
flake.lock generated
View File

@@ -22,15 +22,16 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1745804731, "lastModified": 1745930157,
"narHash": "sha256-v/sK3AS0QKu/Tu5sHIfddiEHCvrbNYPv8X10Fpux68g=", "narHash": "sha256-y3h3NLnzRSiUkYpnfvnS669zWZLoqqI6NprtLQ+5dck=",
"owner": "NixOs", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "29335f23bea5e34228349ea739f31ee79e267b88", "rev": "46e634be05ce9dc6d4db8e664515ba10b78151ae",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "NixOs", "owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }

View File

@@ -1,6 +1,6 @@
{ {
inputs = { inputs = {
nixpkgs.url = "github:NixOs/nixpkgs"; nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager"; home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs"; home-manager.inputs.nixpkgs.follows = "nixpkgs";
}; };
@@ -12,10 +12,18 @@
nixosConfigurations = { nixosConfigurations = {
nixos-vm2 = nixpkgs.lib.nixosSystem { nixos-vm2 = nixpkgs.lib.nixosSystem {
inherit system; inherit system;
specialArgs = { inherit inputs; };
modules = [ modules = [
./hosts/nixos-vm2/configuration.nix ./hosts/nixos-vm2/configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.poslop = import ./modules/home;
}
]; ];
}; };
}; };

View File

@@ -7,8 +7,8 @@
imports = imports =
[ [
../../modules
./hardware-configuration.nix ./hardware-configuration.nix
../../modules/core
]; ];
programs.hyprland.enable = true; programs.hyprland.enable = true;

View File

@@ -1,5 +1,7 @@
{ {
imports = [ imports = [
./packages.nix #./packages.nix
./ssh.nix
]; ];
} }

9
modules/core/ssh.nix Normal file
View File

@@ -0,0 +1,9 @@
{
pkgs,
...
}:
{
services.openssh = {
enable = true;
};
}

View File

@@ -1,6 +1,9 @@
{ {
imports = [ imports = [
./hyprland ./hyprland
./ssh.nix ./git.nix
./home-manager.nix
./packages.nix
./user.nix
]; ];
} }

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

@@ -0,0 +1,8 @@
{ config, pkgs, ... }:
{
programs.git = {
enable = true;
userName = "poslop";
userEmail = "poslop@archfox.org";
};
}

View File

@@ -0,0 +1,5 @@
{ config, pkgs, ... }:
{
programs.home-manager.enable = true;
}

14
modules/home/packages.nix Normal file
View File

@@ -0,0 +1,14 @@
{ config, pkgs, ... }:
{
home.packages = with pkgs; [
neofetch
btop
zsh
wl-clipboard
kitty
vim
wget
curl
];
}

6
modules/home/user.nix Normal file
View File

@@ -0,0 +1,6 @@
{ config, pkgs, ... }:
{
home.username = "poslop";
home.homeDirectory = "/home/poslop";
}