nix: add polder home

This commit is contained in:
js0ny 2025-10-21 17:39:23 +00:00
parent 04492a62c2
commit 8bcd089b3a
4 changed files with 108 additions and 98 deletions

View file

@ -28,8 +28,7 @@
agenix.url = "github:ryantm/agenix";
};
outputs =
{
outputs = {
self,
nixpkgs,
nix-flatpak,
@ -41,8 +40,7 @@
caelestia-shell,
agenix,
...
}@inputs:
let
} @ inputs: let
overlays = [
nur.overlays.default
(final: prev: {
@ -50,8 +48,7 @@
caelestia-shell = caelestia-shell.packages.x86_64-linux.caelestia-shell;
})
];
forSystem =
system:
forSystem = system:
import nixpkgs {
inherit system overlays;
config.allowUnfree = true;
@ -64,8 +61,7 @@
"polder"
];
mkNixosSystem =
hostname:
mkNixosSystem = hostname:
nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
inherit specialArgs;
@ -75,8 +71,7 @@
{nixpkgs.overlays = overlays;}
];
};
in
{
in {
# This will automatically generate nixOS config for `nixosHosts'
# Include the module ./hosts/${hostname} by default.
nixosConfigurations = nixpkgs.lib.genAttrs nixosHosts mkNixosSystem;
@ -113,6 +108,13 @@
./users/js0ny/nixvirt.nix
];
};
"js0ny@polder" = home-manager.lib.homeManagerConfiguration {
pkgs = forSystem "x86_64-linux";
extraSpecialArgs = specialArgs;
modules = [
./users/js0ny/polder.nix
];
};
"js0ny@zen" = home-manager.lib.homeManagerConfiguration {
pkgs = forSystem "aarch64-darwin";
extraSpecialArgs = specialArgs;

View file

@ -2,10 +2,8 @@
{
config,
pkgs,
nix-flatpak,
...
}:
{
}: {
imports = [
# impure build
/etc/nixos/hardware-configuration.nix
@ -27,7 +25,7 @@
services.openssh = {
enable = true;
settings = {
PermitRootLogin = "yes";
PermitRootLogin = "no";
};
};
@ -54,4 +52,7 @@
allowedTCPPorts = [22];
};
};
environment.systemPackages = with pkgs; [
rclone
];
}

View file

@ -2,12 +2,6 @@
{pkgs, ...}: let
username = "js0ny";
in {
imports = [
../../modules/home/programs/fzf.nix
../../modules/home/programs/lsd.nix
../../modules/home/programs/zoxide.nix
];
nixpkgs.config.allowUnfree = true;
home.username = username;
home.homeDirectory =
if pkgs.stdenv.isDarwin

View file

@ -0,0 +1,13 @@
# ~/.config/nixcfgs/users/js0ny/polder.nix
{...}: {
imports = [
./default.nix
./programs/shell.nix
../../modules/home/dev/nix.nix
../../modules/home/programs/fzf.nix
../../modules/home/programs/lsd.nix
../../modules/home/programs/nvim.nix
];
home.stateVersion = "25.05";
}