2024-02-07 13:50:03 +01:00
|
|
|
{
|
|
|
|
inputs,
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
imports = [
|
|
|
|
./locale
|
|
|
|
./packages
|
|
|
|
];
|
2024-02-22 13:01:31 +01:00
|
|
|
sops.age.keyFile = ../../../../../../var/secrets/keys.txt;
|
2024-02-22 12:52:10 +01:00
|
|
|
sops.secrets."lillian-password".neededForUsers = true;
|
|
|
|
|
2024-07-11 16:02:20 +02:00
|
|
|
#TODO: remove this when unneeded for freetube
|
|
|
|
nixpkgs.config.permittedInsecurePackages = [
|
2024-10-02 18:30:42 +02:00
|
|
|
"python3.12-youtube-dl-2021.12.17"
|
2024-07-11 16:02:20 +02:00
|
|
|
];
|
2024-03-03 20:55:49 +01:00
|
|
|
nix = {
|
2024-05-16 14:26:46 +02:00
|
|
|
package = pkgs.lix;
|
2024-03-03 20:55:49 +01:00
|
|
|
gc = {
|
|
|
|
automatic = true;
|
|
|
|
dates = "weekly";
|
|
|
|
options = "--delete-older-than 7d";
|
|
|
|
};
|
|
|
|
# This will add each flake input as a registry
|
|
|
|
# To make nix3 commands consistent with your flake
|
|
|
|
registry = lib.mapAttrs (_: value: {flake = value;}) inputs;
|
|
|
|
|
|
|
|
# This will additionally add your inputs to the system's legacy channels
|
|
|
|
# Making legacy nix commands consistent as well, awesome!
|
|
|
|
nixPath = lib.mapAttrsToList (key: value: "${key}=${value.to.path}") config.nix.registry;
|
|
|
|
|
|
|
|
settings = {
|
|
|
|
# Enable flakes and new 'nix' command
|
|
|
|
experimental-features = "nix-command flakes";
|
|
|
|
# Deduplicate and optimize nix store
|
|
|
|
auto-optimise-store = true;
|
2024-06-26 15:26:00 +02:00
|
|
|
extra-substituters = [
|
|
|
|
"https://cache.lix.systems"
|
|
|
|
"https://nix-community.cachix.org"
|
|
|
|
"https://nixpkgs-unfree.cachix.org"
|
|
|
|
"https://0uptime.cachix.org"
|
2024-10-19 20:22:51 +02:00
|
|
|
"https://attic.kennel.juneis.dog/conduit"
|
2024-06-26 15:26:00 +02:00
|
|
|
];
|
|
|
|
trusted-public-keys = [
|
|
|
|
"cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o="
|
|
|
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
|
|
|
"nixpkgs-unfree.cachix.org-1:hqvoInulhbV4nJ9yJOEr+4wxhDV4xq2d1DK7S6Nj6rs="
|
|
|
|
"0uptime.cachix.org-1:ctw8yknBLg9cZBdqss+5krAem0sHYdISkw/IFdRbYdE="
|
2024-10-19 20:22:51 +02:00
|
|
|
"conduit:eEKoUwlQGDdYmAI/Q/0slVlegqh/QmAvQd7HBSm21Wk="
|
2024-06-26 15:26:00 +02:00
|
|
|
];
|
2024-03-03 20:55:49 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-05-25 16:30:53 +02:00
|
|
|
catppuccin.flavor = "macchiato";
|
2024-04-26 22:59:34 +02:00
|
|
|
catppuccin.enable = true;
|
|
|
|
|
|
|
|
console.catppuccin.enable = true;
|
|
|
|
|
2024-05-12 23:11:43 +02:00
|
|
|
home-manager.backupFileExtension = "backup";
|
|
|
|
|
2024-02-22 12:52:10 +01:00
|
|
|
users.users.lillian = {
|
|
|
|
isNormalUser = true;
|
|
|
|
extraGroups = ["sudo" "networkmanager" "wheel" "vboxsf" "docker"];
|
|
|
|
shell = pkgs.zsh;
|
|
|
|
hashedPasswordFile = config.sops.secrets."lillian-password".path;
|
|
|
|
openssh.authorizedKeys.keys = [
|
2024-08-29 10:17:15 +02:00
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILhwA+ZdP2tEBYQNdzLHZzFHxocyeqzhXI6tFpaZA3PZ lillian@EDI"
|
2024-09-24 22:52:26 +02:00
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIH30G2PJOnI6jnAtxOQV0SpLFUva0adarLZLvaoZvjGE lillian@GLaDOS"
|
2024-02-22 12:52:10 +01:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2024-03-04 16:11:01 +01:00
|
|
|
programs.zsh = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
# Enable completion of system packages by zsh
|
|
|
|
environment.pathsToLink = ["/share/zsh"];
|
|
|
|
|
2024-02-22 12:52:10 +01:00
|
|
|
users.mutableUsers = false;
|
|
|
|
|
|
|
|
users.users.root = {
|
|
|
|
hashedPassword = "*";
|
|
|
|
};
|
2024-02-07 13:50:03 +01:00
|
|
|
}
|