hosts: set profiles

We set profiles before moving the config so nothing breaks and we keep a
working commit history :)
This commit is contained in:
Anthony Rodriguez 2025-01-14 12:33:00 +01:00
parent 65ea8beba0
commit 9b01b40253
Signed by: nezia
GPG key ID: EE3BE97C040A86CE
4 changed files with 19 additions and 8 deletions

View file

@ -8,14 +8,21 @@ in {
inputs.agenix.nixosModules.default
];
local = {
systemVars = {
hostName = "anastacia";
};
profiles.server.enable = true;
};
boot.tmp.cleanOnBoot = true;
zramSwap.enable = true;
networking.hostName = "anastacia";
networking.domain = "";
services.openssh.enable = true;
users.users.root.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEzs7SQH0Vjt9JHoXXmWy9fPU1I3rrRWV5magZFrI5al"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHKEPlN/GU9nJZPleA77HH5NA+6vyhhM84fTSjEwnEgq"
];
system.stateVersion = "23.11";
}

View file

@ -17,8 +17,6 @@
"${self}/config/nixos/services/documentation.nix"
"${self}/config/nixos/services/location.nix"
"${self}/config/nixos/hardware/mcuxpresso.nix"
({
config,
specialArgs,
@ -62,7 +60,6 @@
gaming = [
../config/nixos/programs/games.nix
../config/nixos/services/flatpak.nix
../config/nixos/hardware/uni-sync.nix
({config, ...}: {
home-manager.users.${config.local.systemVars.username}.imports = [
"${self}/config/home-manager/programs/games"
@ -72,9 +69,6 @@
];
laptop = [
"${self}/config/nixos/core/lanzaboote.nix"
"${self}/config/nixos/hardware/fprintd.nix"
"${self}/config/nixos/services/kanata.nix"
"${self}/config/nixos/services/power.nix"
"${self}/config/nixos/services/brightness.nix"

View file

@ -10,6 +10,11 @@ _: {
fullName = "Anthony Rodriguez";
email = "anthony@nezia.dev";
};
profiles = {
desktop.enable = true;
gaming.enable = true;
};
};
environment.variables.FLAKE = "/home/nezia/.dotfiles";

View file

@ -11,6 +11,11 @@ _: {
fullName = "Anthony Rodriguez";
email = "anthony@nezia.dev";
};
profiles = {
desktop.enable = true;
laptop.enable = true;
};
};
environment.variables.FLAKE = "/home/nezia/.dotfiles";