Recreated flake files
This commit is contained in:
@@ -0,0 +1,45 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
user,
|
||||||
|
inputs,
|
||||||
|
flakeRoot,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
options = {
|
||||||
|
wm = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
default = "hyprland";
|
||||||
|
description = "Type of window manager to use";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = {
|
||||||
|
# Enable Home Manager for the user
|
||||||
|
home-manager.users.${user.username} = {
|
||||||
|
enable = true;
|
||||||
|
homeDirectory = user.homeDirectory;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Minimal settings that must be defined here
|
||||||
|
networking.hostName = "traveldroid";
|
||||||
|
wm.type = "hyprland";
|
||||||
|
|
||||||
|
# User configuration
|
||||||
|
users.users.${user.username} = {
|
||||||
|
isNormalUser = true;
|
||||||
|
extraGroups = [
|
||||||
|
"wheel"
|
||||||
|
"networkmanager"
|
||||||
|
];
|
||||||
|
hashedPassword = user.hashedPassword;
|
||||||
|
home = user.homeDirectory;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Optional: Enable auto-login for testing
|
||||||
|
services.getty.autologinUser = user.username;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -12,40 +12,7 @@
|
|||||||
imports = [
|
imports = [
|
||||||
./boot.nix
|
./boot.nix
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
./machine.nix
|
||||||
inputs.home-manager.nixosModules.home-manager
|
inputs.home-manager.nixosModules.home-manager
|
||||||
];
|
]
|
||||||
|
|
||||||
options = {
|
|
||||||
wm = lib.mkOption {
|
|
||||||
type = lib.types.str;
|
|
||||||
default = "hyprland";
|
|
||||||
description = "Type of window manager to use";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = {
|
|
||||||
# Enable Home Manager for the user
|
|
||||||
home-manager.users.${user.username} = {
|
|
||||||
enable = true;
|
|
||||||
homeDirectory = user.homeDirectory;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Minimal settings that must be defined here
|
|
||||||
networking.hostName = "traveldroid";
|
|
||||||
wm.type = "hyprland";
|
|
||||||
|
|
||||||
# User configuration
|
|
||||||
users.users.${user.username} = {
|
|
||||||
isNormalUser = true;
|
|
||||||
extraGroups = [
|
|
||||||
"wheel"
|
|
||||||
"networkmanager"
|
|
||||||
];
|
|
||||||
hashedPassword = user.hashedPassword;
|
|
||||||
home = user.homeDirectory;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Optional: Enable auto-login for testing
|
|
||||||
services.getty.autologinUser = user.username;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{ mkShell, ... }:
|
{ mkShell, ... }:
|
||||||
mkShell {
|
mkShell {
|
||||||
buildInputs = with import <nixpkgs> {}; [
|
buildInputs = with import <nixpkgs> { }; [
|
||||||
nil
|
nil
|
||||||
nixfmt-rfc-style
|
nixfmt-rfc-style
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user