moving flake into generated

This commit is contained in:
2026-03-16 08:31:13 +00:00
parent 810aa7be5a
commit 6aabc678cf
6 changed files with 64 additions and 2 deletions
+2 -2
View File
@@ -36,7 +36,7 @@ outputs =
let
lib = nixpkgs.lib;
system = "x86_64-linux";
user = import ./assets/flake/users/henrov.nix;
user = import ./generated/out_of_tree/users/henrov.nix;
machines = [
"traveldroid"
"maindroid"
@@ -76,7 +76,7 @@ outputs =
}
);
devShells.${system}.default = import ./assets/flake/terminal_shell/devshell.nix {
devShells.${system}.default = import ./generated/out_of_tree/terminal_shell/devshell.nix {
inherit (nixpkgs.legacyPackages.${system}) mkShell;
};
};
@@ -0,0 +1,7 @@
{ mkShell, ... }:
mkShell {
buildInputs = with import <nixpkgs> {}; [
nil
nixfmt-rfc-style
];
}
@@ -0,0 +1,16 @@
{
config,
pkgs,
lib,
user,
inputs,
flakeRoot,
...
}:
{
imports = [
./devshell.nix
inputs.home-manager.nixosModules.home-manager
];
}
@@ -0,0 +1,7 @@
{
username = "henrov";
hashedPassword = "$6$ISAmsPLyFi7idYXr$VmZsq.zMsyh1irSkyDNqtorNXG0oEHbbMVqTii1t8bymvrQ5ZQmbdi4OiBNeNYe/huHGrojXM.3TST2fTLz0T.";
homeDirectory = "/home/henrov";
stateVersion = "25.11";
locale = "nl_NL.UTF-8";
}
@@ -0,0 +1,6 @@
{ config, pkgs, lib, ... }:
{
imports = [
./user.nix
];
}
@@ -0,0 +1,26 @@
{
config,
pkgs,
lib,
inputs,
...
}:
let
user = import ./henrov.nix;
in
{
home-manager.users.${user.username} = {
home.stateVersion = "25.11";
home.username = user.username;
home.homeDirectory = user.homeDirectory;
home.packages = with pkgs; [
direnv
git-extras
];
};
# Ensure the user is in the necessary groups
users.users.${config.users.users.${user.username}.username} = {
extraGroups = [ "networkmanager" ];
}