homemmanegr
This commit is contained in:
11
flake.lock
generated
11
flake.lock
generated
@@ -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"
|
||||
}
|
||||
|
||||
12
flake.nix
12
flake.nix
@@ -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;
|
||||
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
|
||||
imports =
|
||||
[
|
||||
../../modules
|
||||
./hardware-configuration.nix
|
||||
../../modules/core
|
||||
];
|
||||
|
||||
programs.hyprland.enable = true;
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
{
|
||||
imports = [
|
||||
./packages.nix
|
||||
#./packages.nix
|
||||
./ssh.nix
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
9
modules/core/ssh.nix
Normal file
9
modules/core/ssh.nix
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
@@ -1,6 +1,9 @@
|
||||
{
|
||||
imports = [
|
||||
./hyprland
|
||||
./ssh.nix
|
||||
./git.nix
|
||||
./home-manager.nix
|
||||
./packages.nix
|
||||
./user.nix
|
||||
];
|
||||
}
|
||||
|
||||
8
modules/home/git.nix
Normal file
8
modules/home/git.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "poslop";
|
||||
userEmail = "poslop@archfox.org";
|
||||
};
|
||||
}
|
||||
5
modules/home/home-manager.nix
Normal file
5
modules/home/home-manager.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.home-manager.enable = true;
|
||||
}
|
||||
14
modules/home/packages.nix
Normal file
14
modules/home/packages.nix
Normal 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
6
modules/home/user.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
home.username = "poslop";
|
||||
home.homeDirectory = "/home/poslop";
|
||||
}
|
||||
Reference in New Issue
Block a user