chore: reorganize

This commit is contained in:
Christoph Hollizeck 2025-12-02 15:18:15 +01:00
parent 4897d002a8
commit 318294f683
Signed by: Daholli
GPG key ID: 249300664F2AF2C7
7 changed files with 0 additions and 0 deletions

71
modules/base/default.nix Normal file
View file

@ -0,0 +1,71 @@
{
flake.modules =
let
stateVersion = "25.05";
in
{
homeManager.base =
{
config,
inputs,
...
}:
{
imports = [
inputs.sops-nix.homeManagerModules.sops
];
home = {
inherit stateVersion;
};
};
nixos.base =
{
config,
inputs,
pkgs,
...
}:
{
imports = [
inputs.sops-nix.nixosModules.sops
inputs.niri-flake.nixosModules.niri
];
environment.systemPackages = with pkgs; [
sops
age
ssh-to-age
];
services.gnome.gnome-keyring.enable = true;
services.dbus.packages = [
pkgs.gnome-keyring
pkgs.gcr
];
sops = {
defaultSopsFile = ../../../secrets/secrets.yaml;
defaultSopsFormat = "yaml";
age = {
keyFile = "/home/cholli/.config/sops/age/keys.txt";
sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
};
};
system = {
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://search.nixos.org/options?&show=system.stateVersion&from=0&size=50&sort=relevance&type=packages&query=stateVersion).
inherit stateVersion;
};
};
};
}