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": {
"locked": {
"lastModified": 1745804731,
"narHash": "sha256-v/sK3AS0QKu/Tu5sHIfddiEHCvrbNYPv8X10Fpux68g=",
"owner": "NixOs",
"lastModified": 1745930157,
"narHash": "sha256-y3h3NLnzRSiUkYpnfvnS669zWZLoqqI6NprtLQ+5dck=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "29335f23bea5e34228349ea739f31ee79e267b88",
"rev": "46e634be05ce9dc6d4db8e664515ba10b78151ae",
"type": "github"
},
"original": {
"owner": "NixOs",
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}

View File

@@ -1,6 +1,6 @@
{
inputs = {
nixpkgs.url = "github:NixOs/nixpkgs";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
@@ -12,10 +12,18 @@
nixosConfigurations = {
nixos-vm2 = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs; };
modules = [
./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 =
[
../../modules
./hardware-configuration.nix
../../modules/core
];
programs.hyprland.enable = true;

View File

@@ -1,5 +1,7 @@
{
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 = [
./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";
}