Recreated files
This commit is contained in:
+351
-396
File diff suppressed because it is too large
Load Diff
+1
-38
@@ -492,46 +492,9 @@ mkShell {
|
|||||||
}
|
}
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** =assets/flake/machines/traveldroid/top.nix=
|
|
||||||
This code defines the machine to build. Just search and replace traveldroid to provision another machine.
|
|
||||||
#+BEGIN_SRC nix :tangle assets/flake/machines/traveldroid/top.nix :noweb tangle :mkdirp yes :eval never-html
|
|
||||||
{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
./boot.nix
|
|
||||||
./hardware-configuration.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
options = {
|
|
||||||
wm = lib.mkOption {
|
|
||||||
type = lib.types.str;
|
|
||||||
default = "hyprland";
|
|
||||||
description = "Type of window manager to use";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = {
|
|
||||||
# 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;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
** =assets/flake/machines/traveldroid/top.nix=
|
** =assets/flake/machines/traveldroid/top.nix=
|
||||||
This is the top if the machine hierarchy
|
This is the top of the machine hierarchy
|
||||||
#+BEGIN_SRC nix :tangle assets/flake/machines/traveldroid/top.nix :noweb tangle :mkdirp yes :eval never-html
|
#+BEGIN_SRC nix :tangle assets/flake/machines/traveldroid/top.nix :noweb tangle :mkdirp yes :eval never-html
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
|
|||||||
@@ -1,37 +1,3 @@
|
|||||||
{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
./boot.nix
|
|
||||||
./hardware-configuration.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
options = {
|
|
||||||
wm = lib.mkOption {
|
|
||||||
type = lib.types.str;
|
|
||||||
default = "hyprland";
|
|
||||||
description = "Type of window manager to use";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = {
|
|
||||||
# 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;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
|||||||
Reference in New Issue
Block a user