ref: remove host.laptop from user modules

This commit is contained in:
2025-12-01 22:22:18 +03:00
parent 3835443178
commit ce4e5e3d50
6 changed files with 9 additions and 25 deletions
+1 -4
View File
@@ -1,6 +1,4 @@
{ config, pkgs, pkgs-unstable, pkgs-fixed, lib, inputs, ...}: let { config, pkgs, pkgs-unstable, pkgs-fixed, lib, inputs, ...}: {
laptop = false;
in {
imports = [ imports = [
./secrets/secrets.nix ./secrets/secrets.nix
./modules/aagl.nix ./modules/aagl.nix
@@ -21,7 +19,6 @@ in {
inherit pkgs-fixed; inherit pkgs-fixed;
inherit lib; inherit lib;
inherit inputs; inherit inputs;
inherit laptop;
name = "chest"; name = "chest";
}) })
]; ];
+2 -5
View File
@@ -1,6 +1,4 @@
{ config, pkgs, pkgs-unstable, pkgs-fixed, lib, inputs, ...}: let { config, pkgs, pkgs-unstable, pkgs-fixed, lib, inputs, ...}: {
laptop = true;
in {
imports = [ imports = [
./secrets/secrets.nix ./secrets/secrets.nix
./modules/grub.nix ./modules/grub.nix
@@ -19,7 +17,6 @@ in {
inherit pkgs-fixed; inherit pkgs-fixed;
inherit lib; inherit lib;
inherit inputs; inherit inputs;
inherit laptop;
name = "chest"; name = "chest";
}) })
]; ];
@@ -28,5 +25,5 @@ in {
nixpkgs.config.allowBroken = true; nixpkgs.config.allowBroken = true;
programs.gamemode.enable = true; programs.gamemode.enable = true;
hardware.bluetooth.enable = true; hardware.bluetooth.enable = true;
host.laptop = laptop; host.laptop = true;
} }
+1 -4
View File
@@ -1,6 +1,4 @@
{ config, pkgs, pkgs-unstable, pkgs-fixed, lib, inputs, ...}: let { config, pkgs, pkgs-unstable, pkgs-fixed, lib, inputs, ...}: {
laptop = false;
in {
imports = [ imports = [
./secrets/secrets.nix ./secrets/secrets.nix
./modules/grub.nix ./modules/grub.nix
@@ -21,7 +19,6 @@ in {
inherit pkgs-fixed; inherit pkgs-fixed;
inherit lib; inherit lib;
inherit inputs; inherit inputs;
inherit laptop;
name = "sweetbread"; name = "sweetbread";
fullname = "Sweet Bread"; fullname = "Sweet Bread";
}) })
+2 -5
View File
@@ -1,6 +1,4 @@
{ config, pkgs, pkgs-unstable, pkgs-fixed, lib, inputs, ...}: let { config, pkgs, pkgs-unstable, pkgs-fixed, lib, inputs, ...}: {
laptop = true;
in {
imports = [ imports = [
./secrets/secrets.nix ./secrets/secrets.nix
./modules/grub.nix ./modules/grub.nix
@@ -19,14 +17,13 @@ in {
inherit pkgs-fixed; inherit pkgs-fixed;
inherit lib; inherit lib;
inherit inputs; inherit inputs;
inherit laptop;
name = "sweetbread"; name = "sweetbread";
fullname = "Sweet Bread"; fullname = "Sweet Bread";
}) })
]; ];
hardware.bluetooth.enable = true; hardware.bluetooth.enable = true;
host.laptop = laptop; host.laptop = true;
environment.systemPackages = [ pkgs.dbgate ]; environment.systemPackages = [ pkgs.dbgate ];
} }
+2 -2
View File
@@ -1,6 +1,6 @@
{ pkgs-fixed, lib, host, ... }: { pkgs-fixed, lib, osConfig, ... }:
lib.mkIf (!host.laptop) { lib.mkIf (!osConfig.host.laptop) {
home.packages = with pkgs-fixed; [ home.packages = with pkgs-fixed; [
(blender.override { cudaSupport = true; }) (blender.override { cudaSupport = true; })
aseprite aseprite
+1 -5
View File
@@ -1,4 +1,4 @@
{ config, pkgs, pkgs-unstable, pkgs-fixed, lib, inputs, laptop, name, fullname ? name, ... }: { { config, pkgs, pkgs-unstable, pkgs-fixed, lib, inputs, name, fullname ? name, ... }: {
imports = [ imports = [
inputs.home-manager.nixosModules.home-manager { inputs.home-manager.nixosModules.home-manager {
home-manager = { home-manager = {
@@ -30,10 +30,6 @@
inherit inputs; inherit inputs;
pkgs-stable = pkgs; pkgs-stable = pkgs;
inherit pkgs-fixed; inherit pkgs-fixed;
host = {
laptop = laptop;
name = config.networking.hostName;
};
username = name; username = name;
}; };
}; };