mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
nix: add polder home
This commit is contained in:
parent
04492a62c2
commit
8bcd089b3a
4 changed files with 108 additions and 98 deletions
|
|
@ -28,8 +28,7 @@
|
||||||
agenix.url = "github:ryantm/agenix";
|
agenix.url = "github:ryantm/agenix";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs = {
|
||||||
{
|
|
||||||
self,
|
self,
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
nix-flatpak,
|
nix-flatpak,
|
||||||
|
|
@ -41,8 +40,7 @@
|
||||||
caelestia-shell,
|
caelestia-shell,
|
||||||
agenix,
|
agenix,
|
||||||
...
|
...
|
||||||
}@inputs:
|
} @ inputs: let
|
||||||
let
|
|
||||||
overlays = [
|
overlays = [
|
||||||
nur.overlays.default
|
nur.overlays.default
|
||||||
(final: prev: {
|
(final: prev: {
|
||||||
|
|
@ -50,8 +48,7 @@
|
||||||
caelestia-shell = caelestia-shell.packages.x86_64-linux.caelestia-shell;
|
caelestia-shell = caelestia-shell.packages.x86_64-linux.caelestia-shell;
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
forSystem =
|
forSystem = system:
|
||||||
system:
|
|
||||||
import nixpkgs {
|
import nixpkgs {
|
||||||
inherit system overlays;
|
inherit system overlays;
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
|
|
@ -64,8 +61,7 @@
|
||||||
"polder"
|
"polder"
|
||||||
];
|
];
|
||||||
|
|
||||||
mkNixosSystem =
|
mkNixosSystem = hostname:
|
||||||
hostname:
|
|
||||||
nixpkgs.lib.nixosSystem {
|
nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
inherit specialArgs;
|
inherit specialArgs;
|
||||||
|
|
@ -75,8 +71,7 @@
|
||||||
{nixpkgs.overlays = overlays;}
|
{nixpkgs.overlays = overlays;}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
# This will automatically generate nixOS config for `nixosHosts'
|
# This will automatically generate nixOS config for `nixosHosts'
|
||||||
# Include the module ./hosts/${hostname} by default.
|
# Include the module ./hosts/${hostname} by default.
|
||||||
nixosConfigurations = nixpkgs.lib.genAttrs nixosHosts mkNixosSystem;
|
nixosConfigurations = nixpkgs.lib.genAttrs nixosHosts mkNixosSystem;
|
||||||
|
|
@ -113,6 +108,13 @@
|
||||||
./users/js0ny/nixvirt.nix
|
./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 {
|
"js0ny@zen" = home-manager.lib.homeManagerConfiguration {
|
||||||
pkgs = forSystem "aarch64-darwin";
|
pkgs = forSystem "aarch64-darwin";
|
||||||
extraSpecialArgs = specialArgs;
|
extraSpecialArgs = specialArgs;
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,8 @@
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
nix-flatpak,
|
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
{
|
|
||||||
imports = [
|
imports = [
|
||||||
# impure build
|
# impure build
|
||||||
/etc/nixos/hardware-configuration.nix
|
/etc/nixos/hardware-configuration.nix
|
||||||
|
|
@ -27,7 +25,7 @@
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
PermitRootLogin = "yes";
|
PermitRootLogin = "no";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -54,4 +52,7 @@
|
||||||
allowedTCPPorts = [22];
|
allowedTCPPorts = [22];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
rclone
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,12 +2,6 @@
|
||||||
{pkgs, ...}: let
|
{pkgs, ...}: let
|
||||||
username = "js0ny";
|
username = "js0ny";
|
||||||
in {
|
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.username = username;
|
||||||
home.homeDirectory =
|
home.homeDirectory =
|
||||||
if pkgs.stdenv.isDarwin
|
if pkgs.stdenv.isDarwin
|
||||||
|
|
|
||||||
13
nixcfgs/users/js0ny/polder.nix
Normal file
13
nixcfgs/users/js0ny/polder.nix
Normal 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";
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue