Skip to content

Commit

Permalink
fix: try to make check happy again
Browse files Browse the repository at this point in the history
  • Loading branch information
tboerger committed Nov 24, 2024
1 parent d530b95 commit c038ddc
Show file tree
Hide file tree
Showing 8 changed files with 73 additions and 47 deletions.
46 changes: 43 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,45 @@
let
inherit (self) outputs;

sharedConfiguration = { config, pkgs, ... }: {
nix = {
package = pkgs.nixVersions.stable;

extraOptions = ''
experimental-features = nix-command flakes
'';

settings = {
substituters = [
"https://cache.nixos.org"
"https://nix-community.cachix.org"
"https://nixpkgs.cachix.org"
"https://tboerger.cachix.org"
];

trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"nixpkgs.cachix.org-1:q91R6hxbwFvDqTSDKwDAV4T5PxqXGxswD8vhONFMeOE="
"tboerger.cachix.org-1:3Q1gyqgA9NsOshOgknDvc6fhA8gw0PFAf2qs5vJpeLU="
];
};

gc = {
automatic = true;
persistent = true;
dates = "weekly";
options = "--delete-older-than 2w";
};
};

nixpkgs = {
config = {
allowUnfree = true;
};
};
};

mkComputer = configurationNix: systemName: extraModules: nixpkgs.lib.nixosSystem {
system = systemName;

Expand All @@ -55,6 +94,7 @@
};
}
)
sharedConfiguration
homemanager.nixosModules.home-manager
agenix.nixosModules.default
configurationNix
Expand Down Expand Up @@ -90,7 +130,7 @@
users = {
thomas = {
imports = [
# agenix.homeManagerModules.default
agenix.homeManagerModules.default
./profiles/thomas
];
};
Expand All @@ -115,7 +155,7 @@
users = {
thomas = {
imports = [
# agenix.homeManagerModules.default
agenix.homeManagerModules.default
./profiles/thomas
];
};
Expand All @@ -140,7 +180,7 @@
users = {
thomas = {
imports = [
# agenix.homeManagerModules.default
agenix.homeManagerModules.default
./profiles/thomas
];
};
Expand Down
6 changes: 6 additions & 0 deletions machines/asgard/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
./extras.nix
];

age = {
identityPaths = [
"/etc/ssh/ssh_host_ed25519_key"
];
};

personal = {
services = {
shares = {
Expand Down
6 changes: 6 additions & 0 deletions machines/utgard/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
./extras.nix
];

age = {
identityPaths = [
"/etc/ssh/ssh_host_ed25519_key"
];
};

personal = {
services = {
hass = {
Expand Down
6 changes: 6 additions & 0 deletions machines/vanaheim/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
./extras.nix
];

age = {
identityPaths = [
"/etc/ssh/ssh_host_ed25519_key"
];
};

personal = {
services = {
cloud = {
Expand Down
6 changes: 6 additions & 0 deletions machines/yggdrasil/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
./extras.nix
];

age = {
identityPaths = [
"/etc/ssh/ssh_host_ed25519_key"
];
};

personal = {
services = {
homedns = {
Expand Down
6 changes: 6 additions & 0 deletions profiles/thomas/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ in
./services
];

age = {
identityPaths = [
"${config.home.homeDirectory}/.ssh/id_ed25519"
];
};

profile = {
desktop = {
gnome = {
Expand Down
1 change: 0 additions & 1 deletion shared/global/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
./general.nix
./haveged.nix
./network.nix
./nixpkgs.nix
./openssh.nix
./shells.nix
./sudo.nix
Expand Down
43 changes: 0 additions & 43 deletions shared/global/nixpkgs.nix

This file was deleted.

0 comments on commit c038ddc

Please sign in to comment.