mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 00:33: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";
|
||||
};
|
||||
|
||||
outputs =
|
||||
{
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
nix-flatpak,
|
||||
|
|
@ -41,8 +40,7 @@
|
|||
caelestia-shell,
|
||||
agenix,
|
||||
...
|
||||
}@inputs:
|
||||
let
|
||||
} @ inputs: let
|
||||
overlays = [
|
||||
nur.overlays.default
|
||||
(final: prev: {
|
||||
|
|
@ -50,13 +48,12 @@
|
|||
caelestia-shell = caelestia-shell.packages.x86_64-linux.caelestia-shell;
|
||||
})
|
||||
];
|
||||
forSystem =
|
||||
system:
|
||||
forSystem = system:
|
||||
import nixpkgs {
|
||||
inherit system overlays;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
specialArgs = { inherit inputs overlays; };
|
||||
specialArgs = {inherit inputs overlays;};
|
||||
nixosHosts = [
|
||||
"zp"
|
||||
"zephyrus"
|
||||
|
|
@ -64,19 +61,17 @@
|
|||
"polder"
|
||||
];
|
||||
|
||||
mkNixosSystem =
|
||||
hostname:
|
||||
mkNixosSystem = hostname:
|
||||
nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
inherit specialArgs;
|
||||
modules = [
|
||||
agenix.nixosModules.default
|
||||
./hosts/${hostname}
|
||||
{ nixpkgs.overlays = overlays; }
|
||||
{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;
|
||||
|
|
|
|||
|
|
@ -2,10 +2,8 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
nix-flatpak,
|
||||
...
|
||||
}:
|
||||
{
|
||||
}: {
|
||||
imports = [
|
||||
# impure build
|
||||
/etc/nixos/hardware-configuration.nix
|
||||
|
|
@ -15,7 +13,7 @@
|
|||
|
||||
boot.loader.grub.enable = true;
|
||||
boot.loader.grub.device = "/dev/sda";
|
||||
boot.kernelParams = [ "console=ttyS0,115200n8" "console=tty0" ];
|
||||
boot.kernelParams = ["console=ttyS0,115200n8" "console=tty0"];
|
||||
boot.loader.grub.useOSProber = true;
|
||||
services.qemuGuest.enable = true;
|
||||
services.spice-vdagentd.enable = true;
|
||||
|
|
@ -27,7 +25,7 @@
|
|||
services.openssh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
PermitRootLogin = "yes";
|
||||
PermitRootLogin = "no";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -51,7 +49,10 @@
|
|||
];
|
||||
firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [ 22 ];
|
||||
allowedTCPPorts = [22];
|
||||
};
|
||||
};
|
||||
environment.systemPackages = with pkgs; [
|
||||
rclone
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
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