cleanup
This commit is contained in:
parent
5dc9a063b4
commit
d2d89d7047
4 changed files with 19 additions and 15 deletions
|
|
@ -31,7 +31,7 @@
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
}@inputs:
|
}@inputs:
|
||||||
let
|
let
|
||||||
lib = nixpkgs.lib;
|
inherit (nixpkgs) lib;
|
||||||
lib' = import ./lib.nix { inherit lib; };
|
lib' = import ./lib.nix { inherit lib; };
|
||||||
|
|
||||||
specialArgs = rec {
|
specialArgs = rec {
|
||||||
|
|
|
||||||
|
|
@ -12,11 +12,13 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
config = lib.mkIf config.hd.desktop.enable {
|
config = lib.mkIf config.hd.desktop.enable {
|
||||||
home-manager.users."hd" = lib.mkAliasDefinitions options.home;
|
home-manager = {
|
||||||
|
users."hd" = lib.mkAliasDefinitions options.home;
|
||||||
# install to /etc/profiles, not ~/.nix-profile
|
# install to /etc/profiles, not ~/.nix-profile
|
||||||
home-manager.useUserPackages = true;
|
useUserPackages = true;
|
||||||
# dont use home.nixpkgs
|
# dont use home.nixpkgs
|
||||||
home-manager.useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
|
};
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
imports = [
|
imports = [
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,15 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
networking.hostName = "solo";
|
networking = {
|
||||||
|
hostName = "solo";
|
||||||
|
|
||||||
|
useDHCP = false;
|
||||||
|
interfaces.enp4s0.useDHCP = true;
|
||||||
|
|
||||||
|
firewall = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
age.identityPaths = [
|
age.identityPaths = [
|
||||||
"/root/.ssh/id_ed25519"
|
"/root/.ssh/id_ed25519"
|
||||||
|
|
@ -19,13 +28,6 @@
|
||||||
|
|
||||||
hd.desktop.enable = true;
|
hd.desktop.enable = true;
|
||||||
|
|
||||||
networking.useDHCP = false;
|
|
||||||
networking.interfaces.enp4s0.useDHCP = true;
|
|
||||||
|
|
||||||
networking.firewall = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# ====== DON'T CHANGE ======
|
# ====== DON'T CHANGE ======
|
||||||
system.stateVersion = "25.05";
|
system.stateVersion = "25.05";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
let
|
let
|
||||||
keys =
|
keys =
|
||||||
let
|
let
|
||||||
k = (import ./var/ssh-keys.nix { });
|
k = import ./var/ssh-keys.nix { };
|
||||||
in
|
in
|
||||||
k.root; # ++ k.hd;
|
k.root; # ++ k.hd;
|
||||||
secrets = [
|
secrets = [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue