New structure since I kept struggling with the home-manager implemnentation
This commit is contained in:
@@ -382,18 +382,6 @@ in
|
|||||||
|
|
||||||
* First the nix-files that flake really needs and that do not fit wel in the hierarchical structure
|
* First the nix-files that flake really needs and that do not fit wel in the hierarchical structure
|
||||||
|
|
||||||
** =generated/modules/system/devshell.nix=
|
|
||||||
This code defines a Nix shell environment (also called a "devShell") that you can enter using the nix develop command. When you enter this shell, Nix will provide the tools and dependencies listed in buildInputs.
|
|
||||||
#+BEGIN_SRC nix :tangle generated/modules/system/devshell.nix :noweb tangle :mkdirp yes :eval never-html
|
|
||||||
{ mkShell, ... }:
|
|
||||||
mkShell {
|
|
||||||
buildInputs = with import <nixpkgs> {}; [
|
|
||||||
nil
|
|
||||||
nixfmt-rfc-style
|
|
||||||
];
|
|
||||||
}
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
** =generated/hosts/traveldroid/hardware-configuration.nix=
|
** =generated/hosts/traveldroid/hardware-configuration.nix=
|
||||||
1. Boot into NixOS Live ISO or your installed system.
|
1. Boot into NixOS Live ISO or your installed system.
|
||||||
2. Open a terminal.
|
2. Open a terminal.
|
||||||
|
|||||||
@@ -1,28 +0,0 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
{
|
|
||||||
# Enable Bluetooth hardware and daemon
|
|
||||||
hardware.bluetooth = {
|
|
||||||
enable = true;
|
|
||||||
powerOnBoot = true;
|
|
||||||
packages = with pkgs; [ bluez ];
|
|
||||||
};
|
|
||||||
|
|
||||||
# Enable Bluetooth audio support in PipeWire
|
|
||||||
services.pipewire = {
|
|
||||||
config.pulse = {
|
|
||||||
bluez5.enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Optional: Additional Bluetooth settings
|
|
||||||
hardware.bluetooth.extraConfig = ''
|
|
||||||
AutoEnable=true
|
|
||||||
DiscoverableTimeout=0
|
|
||||||
PairableTimeout=0
|
|
||||||
'';
|
|
||||||
|
|
||||||
# Install a graphical Bluetooth manager (optional)
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
blueman
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
{ pkgs, ... } :
|
|
||||||
{
|
|
||||||
boot = {
|
|
||||||
initrd = {
|
|
||||||
verbose = false; # its a lot of logs. dont need it, unless we do.
|
|
||||||
kernelModules = [ ]; # no kernel modules on boot
|
|
||||||
};
|
|
||||||
|
|
||||||
extraModulePackages = [ ]; # no extra packages on boot either
|
|
||||||
kernelPackages = pkgs.linuxPackages_latest; # latest greatest linux kernel
|
|
||||||
kernelParams = [ "silent" ]; # quiet those logs
|
|
||||||
|
|
||||||
consoleLogLevel = 0; # quiten more logs
|
|
||||||
plymouth.enable = true; # graphical boot animation instead
|
|
||||||
|
|
||||||
supportedFilesystems = [ "ntfs" ]; # should see the ntfs (windows)
|
|
||||||
|
|
||||||
loader = {
|
|
||||||
systemd-boot.enable = true; # systemd-boot
|
|
||||||
systemd-boot.configurationLimit = 10;
|
|
||||||
efi.canTouchEfiVariables = true; # allow editing efi to edit the boot loader
|
|
||||||
timeout = 5; # grub timeout to make a selection
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
{ config, pkgs, lib, ... }:
|
|
||||||
{
|
|
||||||
services.dbus = lib.mkForce {
|
|
||||||
enable = true; # Force this to be true
|
|
||||||
};
|
|
||||||
|
|
||||||
# Configure dbus-broker via its configuration file
|
|
||||||
environment.etc."dbus-broker/launch.conf".text = ''
|
|
||||||
[General]
|
|
||||||
LogLevel=warning
|
|
||||||
MaxConnectionsPerUser=2048
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
{
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
user,
|
|
||||||
inputs,
|
|
||||||
flakeRoot,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
{
|
|
||||||
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;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
{ config, pkgs, ... }:
|
|
||||||
{
|
|
||||||
xdg.portal = {
|
|
||||||
enable = true;
|
|
||||||
config.system.default = [ "hyprland" "gtk" ];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
{ mkShell, ... }:
|
|
||||||
mkShell {
|
|
||||||
buildInputs = with import <nixpkgs> {}; [
|
|
||||||
nil
|
|
||||||
nixfmt-rfc-style
|
|
||||||
];
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user