change file copy to soft link

This commit is contained in:
2025-04-26 19:35:04 +08:00
parent ccf46b865e
commit 3088f2aea8
6 changed files with 29 additions and 57 deletions

View File

@@ -1,4 +1,4 @@
args@{ inputs, outputs, lib, pkgs, home-manager, self, username, useremail, hostname, sysversion, ... }: {
args@{ self, inputs, outputs, lib, pkgs, home-manager, username, useremail, hostname, sysversion, ... }: {
# You can import other NixOS modules here
imports = [
@@ -30,7 +30,7 @@ args@{ inputs, outputs, lib, pkgs, home-manager, self, username, useremail, host
# home-manager.useGlobalPkgs = true;
# home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = {
inherit inputs outputs hostname username useremail sysversion;
inherit self inputs outputs hostname username useremail sysversion;
};
home-manager.users."${username}" = { ... }: {
imports = [

View File

@@ -1,10 +1,9 @@
{ config, ... }:
{
{ config, ... }: {
programs.ssh = {
enable = true;
};
home.file.".ssh/config" = {
source = ./config;
source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/.nix/profiles/apollo/hm/ssh/config";
};
}

View File

@@ -18,6 +18,12 @@
# Set up bridge network
interfaces.eno1 = {
useDHCP = false;
wakeOnLan = {
enable = true;
policy = [
"magic"
];
};
};
bridges = {