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
laptop = false;
in {
{ config, pkgs, pkgs-unstable, pkgs-fixed, lib, inputs, ...}: {
imports = [
./secrets/secrets.nix
./modules/aagl.nix
@@ -21,7 +19,6 @@ in {
inherit pkgs-fixed;
inherit lib;
inherit inputs;
inherit laptop;
name = "chest";
})
];
+2 -5
View File
@@ -1,6 +1,4 @@
{ config, pkgs, pkgs-unstable, pkgs-fixed, lib, inputs, ...}: let
laptop = true;
in {
{ config, pkgs, pkgs-unstable, pkgs-fixed, lib, inputs, ...}: {
imports = [
./secrets/secrets.nix
./modules/grub.nix
@@ -19,7 +17,6 @@ in {
inherit pkgs-fixed;
inherit lib;
inherit inputs;
inherit laptop;
name = "chest";
})
];
@@ -28,5 +25,5 @@ in {
nixpkgs.config.allowBroken = true;
programs.gamemode.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
laptop = false;
in {
{ config, pkgs, pkgs-unstable, pkgs-fixed, lib, inputs, ...}: {
imports = [
./secrets/secrets.nix
./modules/grub.nix
@@ -21,7 +19,6 @@ in {
inherit pkgs-fixed;
inherit lib;
inherit inputs;
inherit laptop;
name = "sweetbread";
fullname = "Sweet Bread";
})
+2 -5
View File
@@ -1,6 +1,4 @@
{ config, pkgs, pkgs-unstable, pkgs-fixed, lib, inputs, ...}: let
laptop = true;
in {
{ config, pkgs, pkgs-unstable, pkgs-fixed, lib, inputs, ...}: {
imports = [
./secrets/secrets.nix
./modules/grub.nix
@@ -19,14 +17,13 @@ in {
inherit pkgs-fixed;
inherit lib;
inherit inputs;
inherit laptop;
name = "sweetbread";
fullname = "Sweet Bread";
})
];
hardware.bluetooth.enable = true;
host.laptop = laptop;
host.laptop = true;
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; [
(blender.override { cudaSupport = true; })
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 = [
inputs.home-manager.nixosModules.home-manager {
home-manager = {
@@ -30,10 +30,6 @@
inherit inputs;
pkgs-stable = pkgs;
inherit pkgs-fixed;
host = {
laptop = laptop;
name = config.networking.hostName;
};
username = name;
};
};