?
This commit is contained in:
parent
00b8680745
commit
7fe6cd9bd6
2
.gitattributes
vendored
Normal file
2
.gitattributes
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
nix/home-manager/secrets/factorio.nix filter=git-agecrypt diff=git-agecrypt
|
||||||
|
nix/etcnixos/secrets/wifi-passwords.nix filter=git-agecrypt diff=git-agecrypt
|
||||||
9
git-agecrypt.toml
Normal file
9
git-agecrypt.toml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
[config]
|
||||||
|
"nix/etcnixos/secrets/wifi-passwords.nix" = [
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO4jL6gYOunUlUtPvGdML0cpbKSsPNqQ1jit4E7U1RyH",
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBJjT5QZ3zRDb+V6Em20EYpSEgPW5e/U+06uQGJdraxi",
|
||||||
|
]
|
||||||
|
"nix/home-manager/secrets/factorio.nix" = [
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO4jL6gYOunUlUtPvGdML0cpbKSsPNqQ1jit4E7U1RyH",
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBJjT5QZ3zRDb+V6Em20EYpSEgPW5e/U+06uQGJdraxi",
|
||||||
|
]
|
||||||
@ -105,22 +105,13 @@
|
|||||||
|
|
||||||
age.identityPaths = [ "/home/${username}/.ssh/id_ed25519" ];
|
age.identityPaths = [ "/home/${username}/.ssh/id_ed25519" ];
|
||||||
|
|
||||||
age.secrets.wifi-passwords = {
|
|
||||||
file = ./secrets/wifi-passwords.age;
|
|
||||||
path = "/etc/secrets/wifi-passwords.nix";
|
|
||||||
};
|
|
||||||
|
|
||||||
age.secrets.primary-password = {
|
age.secrets.primary-password = {
|
||||||
file = ./secrets/primary-password.age;
|
file = ./secrets/primary-password.age;
|
||||||
path = "/etc/secrets/primary-password";
|
path = "/etc/secrets/primary-password";
|
||||||
};
|
};
|
||||||
|
|
||||||
#networking
|
#networking
|
||||||
networking =
|
networking = import ./networking.nix { inherit hostname; };
|
||||||
let
|
|
||||||
wifi-passwords = import "${config.age.secrets.wifi-passwords.path}";
|
|
||||||
in
|
|
||||||
import ./networking.nix { inherit hostname wifi-passwords; };
|
|
||||||
|
|
||||||
# Select internationalisation properties.
|
# Select internationalisation properties.
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
@ -198,6 +189,8 @@
|
|||||||
(inputs.agenix.packages.${pkgs.system}.default.override { ageBin = "${pkgs.rage}/bin/rage"; })
|
(inputs.agenix.packages.${pkgs.system}.default.override { ageBin = "${pkgs.rage}/bin/rage"; })
|
||||||
|
|
||||||
qemu_full
|
qemu_full
|
||||||
|
|
||||||
|
git-agecrypt
|
||||||
];
|
];
|
||||||
|
|
||||||
#wayland with electron/chromium applications
|
#wayland with electron/chromium applications
|
||||||
|
|||||||
12
nix/etcnixos/flake.lock
generated
12
nix/etcnixos/flake.lock
generated
@ -50,11 +50,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1726523817,
|
"lastModified": 1726576520,
|
||||||
"narHash": "sha256-5KueNk96kOJ+Y2n2jZhNd2mdJbPQe3Y8pu1ZRkUCZNQ=",
|
"narHash": "sha256-qkaiUpE3qRXunKbUzMaTGTMzF8nv534oglJY4a2hxNY=",
|
||||||
"owner": "chaotic-cx",
|
"owner": "chaotic-cx",
|
||||||
"repo": "nyx",
|
"repo": "nyx",
|
||||||
"rev": "6c47675209ab684a05adcd6cee50d3d64247280d",
|
"rev": "4409a04839fc8c911ef3e461bb5f422ae1d03a85",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -332,11 +332,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1726578198,
|
"lastModified": 1726580083,
|
||||||
"narHash": "sha256-x+B/GJ9wc4qrq8PfTaYVnthwyaXmajCB2aGYiF2YKAM=",
|
"narHash": "sha256-Jjf3j6s4NHQjQeq7R11ZuCEMgNd7GXinAxAbtfY28xA=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "058f7222f15e3804199fb3ede267cb0368487a33",
|
"rev": "232996c3e7c200ea5619c8ec9dbe24e2101cf210",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@ -13,5 +13,5 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
wireless.networks = wifi-passwords;
|
wireless.networks = import ./secrets/wifi-passwords.nix;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -11,7 +11,6 @@ in
|
|||||||
];
|
];
|
||||||
})
|
})
|
||||||
[
|
[
|
||||||
"wifi-passwords.age"
|
|
||||||
"primary-password.age"
|
"primary-password.age"
|
||||||
]
|
]
|
||||||
))
|
))
|
||||||
|
|||||||
Binary file not shown.
BIN
nix/etcnixos/secrets/wifi-passwords.nix
Normal file
BIN
nix/etcnixos/secrets/wifi-passwords.nix
Normal file
Binary file not shown.
@ -2,8 +2,6 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
inputs,
|
inputs,
|
||||||
config,
|
|
||||||
homeDirectory,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
@ -19,11 +17,6 @@
|
|||||||
"factorio-alpha"
|
"factorio-alpha"
|
||||||
];
|
];
|
||||||
|
|
||||||
age.secrets.factorio = {
|
|
||||||
file = ./secrets/factorio.age;
|
|
||||||
path = "${homeDirectory}/.secrets/factorio.nix";
|
|
||||||
};
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
#calculator
|
#calculator
|
||||||
gnome-calculator
|
gnome-calculator
|
||||||
@ -106,7 +99,7 @@
|
|||||||
|
|
||||||
(factorio.override (
|
(factorio.override (
|
||||||
let
|
let
|
||||||
data = import "${config.age.secrets.factorio.path}";
|
data = import ./secrets/factorio.nix;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
username = data.username;
|
username = data.username;
|
||||||
|
|||||||
Binary file not shown.
BIN
nix/home-manager/secrets/factorio.nix
Normal file
BIN
nix/home-manager/secrets/factorio.nix
Normal file
Binary file not shown.
@ -11,7 +11,6 @@ in
|
|||||||
];
|
];
|
||||||
})
|
})
|
||||||
[
|
[
|
||||||
"factorio.age"
|
|
||||||
"server-password.age"
|
"server-password.age"
|
||||||
"borg-laptop-password.age"
|
"borg-laptop-password.age"
|
||||||
"gnupg.age"
|
"gnupg.age"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user