Want to contribute? Fork me on Codeberg.org!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

119 lines
2.8 KiB

{ lib, inputs, nixpkgs, home-manager, user, ... }:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
lib = nixpkgs.lib;
in
{
desktop = lib.nixosSystem {
inherit system;
specialArgs = { inherit user; };
modules = [
./desktop
./configuration.nix
./desktop.nix
{
boot.loader.grub.gfxmodeEfi = "1920x1080";
networking.hostName = "${user}";
}
home-manager.nixosModules.home-manager {
home-manager = {
useUserPackages = true;
extraSpecialArgs = { inherit user; };
users.${user} = {
imports = [
(import ./home.nix)
(import ./desktop/home.nix)
];
};
};
}
];
};
x220 = lib.nixosSystem {
inherit system;
specialArgs = { inherit user; };
modules = [
./thinkpads
./configuration.nix
./desktop.nix
{
# 1024x768 is the closest supported resolution to X220's native 1366x768
# To see a list of supported GRUB resolutions, enter GRUB,
# press e, F2 to enter command mode, and then type videoinfo to see list
boot.loader.grub.gfxmodeEfi = "1024x768";
networking.hostName = "x220";
}
home-manager.nixosModules.home-manager {
home-manager = {
useUserPackages = true;
extraSpecialArgs = { inherit user; };
users.${user} = {
imports = [
(import ./home.nix)
(import ./thinkpads/home.nix)
];
};
};
}
];
};
t430 = lib.nixosSystem {
inherit system;
specialArgs = { inherit user; };
modules = [
./thinkpads
./configuration.nix
./desktop.nix
{
boot.loader.grub.gfxmodeEfi = "1600x900";
networking.hostName = "t430";
}
home-manager.nixosModules.home-manager {
home-manager = {
useUserPackages = true;
extraSpecialArgs = { inherit user; };
users.${user} = {
imports = [
(import ./home.nix)
(import ./thinkpads/home.nix)
];
};
};
}
];
};
virtualbox = lib.nixosSystem {
inherit system;
specialArgs = { inherit user; };
modules = [
./virtualbox
./configuration.nix
./desktop.nix
{
networking.hostName = "virtualbox";
}
home-manager.nixosModules.home-manager {
home-manager = {
useUserPackages = true;
extraSpecialArgs = { inherit user; };
users.${user} = {
imports = [
(import ./home.nix)
(import ./virtualbox/home.nix)
];
};
};
}
];
};
}