Moved assets/flake/machines/ to generated/out_of_tree/machines
Added generated/out_of_tree/machines/traveldroid/hardware-configuration.nix
This commit is contained in:
+75
-21
@@ -193,7 +193,7 @@ outputs =
|
|||||||
inherit system;
|
inherit system;
|
||||||
modules = [
|
modules = [
|
||||||
# Import machine-specific configurations
|
# Import machine-specific configurations
|
||||||
./assets/flake/machines/traveldroid/top.nix
|
./generated/out_of_tree/machines/traveldroid/top.nix
|
||||||
# Catppuccin theme module
|
# Catppuccin theme module
|
||||||
inputs.catppuccin.nixosModules.catppuccin
|
inputs.catppuccin.nixosModules.catppuccin
|
||||||
# Anchoring all the other nixes
|
# Anchoring all the other nixes
|
||||||
@@ -294,9 +294,9 @@ mkShell {
|
|||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
|
||||||
** =assets/flake/machines/traveldroid/top.nix=
|
** =generated/out_of_tree/machines/traveldroid/top.nix=
|
||||||
This is the top of 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 generated/out_of_tree/machines/traveldroid/top.nix :noweb tangle :mkdirp yes :eval never-html
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
@@ -322,9 +322,63 @@ This is the top of the machine hierarchy
|
|||||||
}
|
}
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** =assets/flake/machines/traveldroid/boot.nix=
|
** =generated/out_of_tree/machines/traveldroid/hardware-configuration.nix=
|
||||||
|
1. Boot into NixOS Live ISO or your installed system.
|
||||||
|
2. Open a terminal.
|
||||||
|
3. Run: <code>sudo nixos-generate-config --root /mnt</code> (Omit --root /mnt if already running NixOS.)
|
||||||
|
#+BEGIN_SRC nix :tangle generated/out_of_tree/machines/traveldroid/hardware-configuration.nix :noweb tangle :mkdirp yes :eval never-html
|
||||||
|
{
|
||||||
|
hostname,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
modulesPath,
|
||||||
|
user,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
# (modulesPath + "/installer/scan/not-detected.nix")
|
||||||
|
#../../hardware/hardware.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [
|
||||||
|
"xhci_pci"
|
||||||
|
"nvme"
|
||||||
|
"usb_storage"
|
||||||
|
"sd_mod"
|
||||||
|
"rtsx_usb_sdmmc"
|
||||||
|
];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
fileSystems."/" = {
|
||||||
|
device = "/dev/disk/by-uuid/69433a14-fbaf-401b-af85-cd1bbf02b4e2";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/boot" = {
|
||||||
|
device = "/dev/disk/by-uuid/811D-0676";
|
||||||
|
fsType = "vfat";
|
||||||
|
options = [
|
||||||
|
"fmask=0077"
|
||||||
|
"dmask=0077"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [
|
||||||
|
{ device = "/dev/disk/by-uuid/b6c557c2-7682-460b-a5e7-8f6f2f429a3a"; }
|
||||||
|
];
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
}
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
** =generated/out_of_tree/machines/traveldroid/boot.nix=
|
||||||
This file has most of the settings the control how the computer boots up.
|
This file has most of the settings the control how the computer boots up.
|
||||||
#+BEGIN_SRC nix :tangle assets/flake/machines/traveldroid/boot.nix :noweb tangle :mkdirp yes :eval never-html
|
#+BEGIN_SRC nix :tangle generated/out_of_tree/machines/traveldroid/boot.nix :noweb tangle :mkdirp yes :eval never-html
|
||||||
{ pkgs, ... } :
|
{ pkgs, ... } :
|
||||||
{
|
{
|
||||||
boot = {
|
boot = {
|
||||||
@@ -352,9 +406,9 @@ This file has most of the settings the control how the computer boots up.
|
|||||||
}
|
}
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** =assets/flake/machines/traveldroid/machine.nix=
|
** =generated/out_of_tree/machines/traveldroid/machine.nix=
|
||||||
This is the top if the machine hierarchy
|
This is the top if the machine hierarchy
|
||||||
#+BEGIN_SRC nix :tangle assets/flake/machines/traveldroid/machine.nix :noweb tangle :mkdirp yes :eval never-html
|
#+BEGIN_SRC nix :tangle generated/out_of_tree/machines/traveldroid/machine.nix :noweb tangle :mkdirp yes :eval never-html
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
@@ -395,9 +449,9 @@ This is the top if the machine hierarchy
|
|||||||
}
|
}
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** =assets/flake/machines/traveldroid/dbus.nix=
|
** =generated/out_of_tree/machines/traveldroid/dbus.nix=
|
||||||
This sets the dbus implementation
|
This sets the dbus implementation
|
||||||
#+BEGIN_SRC nix :tangle assets/flake/machines/traveldroid/dbus.nix :noweb tangle :mkdirp yes :eval never-html
|
#+BEGIN_SRC nix :tangle generated/out_of_tree/machines/traveldroid/dbus.nix :noweb tangle :mkdirp yes :eval never-html
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
{
|
{
|
||||||
services.dbus = lib.mkForce {
|
services.dbus = lib.mkForce {
|
||||||
@@ -413,9 +467,9 @@ This sets the dbus implementation
|
|||||||
}
|
}
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** =assets/flake/machines/traveldroid/networking.nix=
|
** =generated/out_of_tree/machines/traveldroid/networking.nix=
|
||||||
This sets the dbus implementation
|
This sets the networking.
|
||||||
#+BEGIN_SRC nix :tangle assets/flake/machines/traveldroid/networking.nix :noweb tangle :mkdirp yes :eval never-html
|
#+BEGIN_SRC nix :tangle generated/out_of_tree/machines/traveldroid/networking.nix :noweb tangle :mkdirp yes :eval never-html
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
@@ -456,9 +510,9 @@ This sets the dbus implementation
|
|||||||
}
|
}
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** =assets/flake/machines/traveldroid/session.nix=
|
** =generated/out_of_tree/machines/traveldroid/session.nix=
|
||||||
This sets the session variables
|
This sets the session variables
|
||||||
#+BEGIN_SRC nix :tangle assets/flake/machines/traveldroid/session.nix :noweb tangle :mkdirp yes :eval never-html
|
#+BEGIN_SRC nix :tangle generated/out_of_tree/machines/traveldroid/session.nix :noweb tangle :mkdirp yes :eval never-html
|
||||||
{ config, pkgs, user, ... }:
|
{ config, pkgs, user, ... }:
|
||||||
{
|
{
|
||||||
environment.sessionVariables = {
|
environment.sessionVariables = {
|
||||||
@@ -481,9 +535,9 @@ This sets the session variables
|
|||||||
}
|
}
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** =assets/flake/machines/traveldroid/bluetooth.nix=
|
** =generated/out_of_tree/machines/traveldroid/bluetooth.nix=
|
||||||
This sets the bluetooth implementation
|
This sets the bluetooth implementation
|
||||||
#+BEGIN_SRC nix :tangle assets/flake/machines/traveldroid/bluetooth.nix :noweb tangle :mkdirp yes :eval never-html
|
#+BEGIN_SRC nix :tangle generated/out_of_tree/machines/traveldroid/bluetooth.nix :noweb tangle :mkdirp yes :eval never-html
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
{
|
{
|
||||||
# Enable Bluetooth hardware and daemon
|
# Enable Bluetooth hardware and daemon
|
||||||
@@ -514,9 +568,9 @@ This sets the bluetooth implementation
|
|||||||
}
|
}
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** =assets/flake/machines/traveldroid/audio.nix=
|
** =generated/out_of_tree/machines/traveldroid/audio.nix=
|
||||||
This sets audiosystem for this machine
|
This sets audiosystem for this machine
|
||||||
#+BEGIN_SRC nix :tangle assets/flake/machines/traveldroid/audio.nix :noweb tangle :mkdirp yes :eval never-html
|
#+BEGIN_SRC nix :tangle generated/out_of_tree/machines/traveldroid/audio.nix :noweb tangle :mkdirp yes :eval never-html
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
{
|
{
|
||||||
services.pipewire = {
|
services.pipewire = {
|
||||||
@@ -531,9 +585,9 @@ This sets audiosystem for this machine
|
|||||||
}
|
}
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** =assets/flake/machines/traveldroid/xdg.nix=
|
** =generated/out_of_tree/machines/traveldroid/xdg.nix=
|
||||||
This sets the XDG implementation
|
This sets the XDG implementation
|
||||||
#+BEGIN_SRC nix :tangle assets/flake/machines/traveldroid/xdg.nix :noweb tangle :mkdirp yes :eval never-html
|
#+BEGIN_SRC nix :tangle generated/out_of_tree/machines/traveldroid/xdg.nix :noweb tangle :mkdirp yes :eval never-html
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
{
|
{
|
||||||
xdg.portal = {
|
xdg.portal = {
|
||||||
@@ -1036,7 +1090,7 @@ This file sets up wayland
|
|||||||
}
|
}
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** =assets/flake/machones/traveldroid/gtk.nix=
|
** =generated/out_of_tree/machines/traveldroid/gtk.nix=
|
||||||
This file configures gtk
|
This file configures gtk
|
||||||
#+BEGIN_SRC nix :tangle generated/system/core/gtk.nix :noweb tangle :mkdirp yes :eval never-html
|
#+BEGIN_SRC nix :tangle generated/system/core/gtk.nix :noweb tangle :mkdirp yes :eval never-html
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|||||||
Reference in New Issue
Block a user