Change desktop to headless
This commit is contained in:
parent
8607e1dee4
commit
b48cc7774a
12
flake.nix
12
flake.nix
|
@ -34,6 +34,8 @@
|
||||||
username = "opdavies";
|
username = "opdavies";
|
||||||
|
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
|
headless = false;
|
||||||
|
|
||||||
inherit
|
inherit
|
||||||
inputs
|
inputs
|
||||||
outputs
|
outputs
|
||||||
|
@ -59,7 +61,6 @@
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
lemp11 = nixpkgs.lib.nixosSystem {
|
lemp11 = nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = specialArgs // {
|
specialArgs = specialArgs // {
|
||||||
desktop = true;
|
|
||||||
hostname = "lemp11";
|
hostname = "lemp11";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -68,7 +69,6 @@
|
||||||
|
|
||||||
t490 = nixpkgs.lib.nixosSystem {
|
t490 = nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = specialArgs // {
|
specialArgs = specialArgs // {
|
||||||
desktop = true;
|
|
||||||
hostname = "t490";
|
hostname = "t490";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -81,7 +81,11 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
hetznix = nixpkgs.lib.nixosSystem {
|
hetznix = nixpkgs.lib.nixosSystem {
|
||||||
inherit specialArgs system;
|
inherit system;
|
||||||
|
|
||||||
|
specialArgs = specialArgs // {
|
||||||
|
headless = true;
|
||||||
|
};
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
disko.nixosModules.disko
|
disko.nixosModules.disko
|
||||||
|
@ -95,7 +99,7 @@
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
|
|
||||||
extraSpecialArgs = specialArgs // {
|
extraSpecialArgs = specialArgs // {
|
||||||
desktop = false;
|
headless = true;
|
||||||
hostname = "PW05CH3L";
|
hostname = "PW05CH3L";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
desktop,
|
headless ? false,
|
||||||
hostname,
|
hostname,
|
||||||
inputs,
|
inputs,
|
||||||
outputs,
|
outputs,
|
||||||
|
@ -44,7 +44,7 @@ let
|
||||||
|
|
||||||
shared-packages = import "${self}/nix/lib/shared/home-manager-packages.nix" {
|
shared-packages = import "${self}/nix/lib/shared/home-manager-packages.nix" {
|
||||||
inherit
|
inherit
|
||||||
desktop
|
headless
|
||||||
inputs
|
inputs
|
||||||
pkgs
|
pkgs
|
||||||
username
|
username
|
||||||
|
@ -56,7 +56,7 @@ in
|
||||||
|
|
||||||
home.packages =
|
home.packages =
|
||||||
shared-packages
|
shared-packages
|
||||||
++ pkgs.lib.optionals desktop (
|
++ pkgs.lib.optionals (!headless) (
|
||||||
with pkgs;
|
with pkgs;
|
||||||
[
|
[
|
||||||
build-glove80
|
build-glove80
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
{
|
{
|
||||||
|
headless ? false,
|
||||||
hostname,
|
hostname,
|
||||||
inputs,
|
inputs,
|
||||||
outputs,
|
outputs,
|
||||||
pkgs,
|
pkgs,
|
||||||
desktop ? false,
|
|
||||||
self,
|
self,
|
||||||
system,
|
system,
|
||||||
username,
|
username,
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
hostname
|
hostname
|
||||||
inputs
|
inputs
|
||||||
outputs
|
outputs
|
||||||
desktop
|
headless
|
||||||
self
|
self
|
||||||
system
|
system
|
||||||
username
|
username
|
||||||
|
@ -178,7 +178,7 @@
|
||||||
yt-dlp
|
yt-dlp
|
||||||
ytfzf
|
ytfzf
|
||||||
]
|
]
|
||||||
++ pkgs.lib.optionals desktop [
|
++ pkgs.lib.optionals (!headless) [
|
||||||
acpi
|
acpi
|
||||||
arandr
|
arandr
|
||||||
brightnessctl
|
brightnessctl
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
{
|
{
|
||||||
|
headless ? false,
|
||||||
hostname,
|
hostname,
|
||||||
inputs,
|
inputs,
|
||||||
outputs,
|
outputs,
|
||||||
pkgs,
|
pkgs,
|
||||||
desktop ? false,
|
|
||||||
self,
|
self,
|
||||||
system,
|
system,
|
||||||
username,
|
username,
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
hostname
|
hostname
|
||||||
inputs
|
inputs
|
||||||
outputs
|
outputs
|
||||||
desktop
|
headless
|
||||||
self
|
self
|
||||||
system
|
system
|
||||||
username
|
username
|
||||||
|
@ -170,7 +170,7 @@
|
||||||
yt-dlp
|
yt-dlp
|
||||||
ytfzf
|
ytfzf
|
||||||
]
|
]
|
||||||
++ pkgs.lib.optionals desktop [
|
++ pkgs.lib.optionals (!headless) [
|
||||||
acpi
|
acpi
|
||||||
arandr
|
arandr
|
||||||
brightnessctl
|
brightnessctl
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
{
|
{
|
||||||
desktop,
|
headless,
|
||||||
inputs,
|
|
||||||
pkgs,
|
pkgs,
|
||||||
username,
|
username,
|
||||||
...
|
...
|
||||||
|
@ -70,7 +69,7 @@ with pkgs;
|
||||||
deliver
|
deliver
|
||||||
run
|
run
|
||||||
]
|
]
|
||||||
++ pkgs.lib.optionals desktop [
|
++ pkgs.lib.optionals (!headless) [
|
||||||
# Scripts.
|
# Scripts.
|
||||||
_timer
|
_timer
|
||||||
export-video-list
|
export-video-list
|
||||||
|
|
Loading…
Reference in a new issue