refactor(flake): move nixos configs into flake

This commit is contained in:
Mohammad Rafiq 2025-03-31 04:41:56 +08:00
parent fc259dff4a
commit 9f8c3bb923
No known key found for this signature in database
67 changed files with 45 additions and 56 deletions

View file

@ -1,49 +0,0 @@
{
inputs,
config,
specialArgs,
...
}:
{
imports = [
inputs.home-manager.nixosModules.home-manager
];
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = specialArgs;
};
time.timeZone = "Asia/Singapore";
i18n.defaultLocale = "en_SG.UTF-8";
users = {
mutableUsers = false; # Always reset users on system activation
groups.users = {
gid = 100;
members = [ "rafiq" ];
};
users.rafiq = {
isNormalUser = true;
description = "rafiq";
hashedPasswordFile = config.sops.secrets.password.path;
uid = 1000;
extraGroups = [
"networkmanager"
"wheel"
];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILdsZyY3gu8IGB8MzMnLdh+ClDxQQ2RYG9rkeetIKq8n"
];
};
};
home-manager.users.rafiq.home = {
username = "rafiq";
homeDirectory = "/home/rafiq";
stateVersion = "25.05";
};
}