Testing VM
This commit is contained in:
+297
-303
File diff suppressed because it is too large
Load Diff
+7
-13
@@ -442,20 +442,14 @@ mkShell {
|
|||||||
** =assets/flake/machines/traveldroid/top.nix=
|
** =assets/flake/machines/traveldroid/top.nix=
|
||||||
This code defines the machine to build. Just search and replace traveldroid to provision another machine.
|
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
|
#+BEGIN_SRC nix :tangle assets/flake/machines/traveldroid/top.nix :noweb tangle :mkdirp yes :eval never-html
|
||||||
|
{ config, pkgs, lib, user, inputs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
user,
|
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
# Import all other configurations
|
|
||||||
imports = [
|
imports = [
|
||||||
./boot.nix
|
./boot.nix
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
wm = lib.mkOption {
|
wm = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
@@ -463,15 +457,15 @@ This code defines the machine to build. Just search and replace traveldroid to p
|
|||||||
description = "Type of window manager to use";
|
description = "Type of window manager to use";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
# Minimal settings that must be defined here
|
# Minimal settings that must be defined here
|
||||||
networking.hostName = "traveldroid";
|
networking.hostName = "traveldroid";
|
||||||
wm.type = "hyprland"; # Define the window manager type here, mangowc will be made possible in the near future.
|
wm.type = "hyprland";
|
||||||
};
|
|
||||||
|
|
||||||
|
# User configuration
|
||||||
users.users.${user.username} = {
|
users.users.${user.username} = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
#description = "Henro Veijer";
|
|
||||||
extraGroups = [ "wheel" "networkmanager" ];
|
extraGroups = [ "wheel" "networkmanager" ];
|
||||||
hashedPassword = user.hashedPassword;
|
hashedPassword = user.hashedPassword;
|
||||||
home = user.homeDirectory;
|
home = user.homeDirectory;
|
||||||
@@ -479,7 +473,7 @@ This code defines the machine to build. Just search and replace traveldroid to p
|
|||||||
|
|
||||||
# Optional: Enable auto-login for testing
|
# Optional: Enable auto-login for testing
|
||||||
services.getty.autologinUser = user.username;
|
services.getty.autologinUser = user.username;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
|||||||
@@ -1,17 +1,11 @@
|
|||||||
|
{ config, pkgs, lib, user, inputs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
user,
|
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
# Import all other configurations
|
|
||||||
imports = [
|
imports = [
|
||||||
./boot.nix
|
./boot.nix
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
wm = lib.mkOption {
|
wm = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
@@ -19,15 +13,15 @@
|
|||||||
description = "Type of window manager to use";
|
description = "Type of window manager to use";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
# Minimal settings that must be defined here
|
# Minimal settings that must be defined here
|
||||||
networking.hostName = "traveldroid";
|
networking.hostName = "traveldroid";
|
||||||
wm.type = "hyprland"; # Define the window manager type here, mangowc will be made possible in the near future.
|
wm.type = "hyprland";
|
||||||
};
|
|
||||||
|
|
||||||
|
# User configuration
|
||||||
users.users.${user.username} = {
|
users.users.${user.username} = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
#description = "Henro Veijer";
|
|
||||||
extraGroups = [ "wheel" "networkmanager" ];
|
extraGroups = [ "wheel" "networkmanager" ];
|
||||||
hashedPassword = user.hashedPassword;
|
hashedPassword = user.hashedPassword;
|
||||||
home = user.homeDirectory;
|
home = user.homeDirectory;
|
||||||
@@ -35,5 +29,5 @@
|
|||||||
|
|
||||||
# Optional: Enable auto-login for testing
|
# Optional: Enable auto-login for testing
|
||||||
services.getty.autologinUser = user.username;
|
services.getty.autologinUser = user.username;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user