|
|
@ -9,13 +9,20 @@ let
|
|
|
|
lib = nixpkgs.lib;
|
|
|
|
lib = nixpkgs.lib;
|
|
|
|
in
|
|
|
|
in
|
|
|
|
{
|
|
|
|
{
|
|
|
|
elnupad = lib.nixosSystem {
|
|
|
|
x220 = lib.nixosSystem {
|
|
|
|
inherit system;
|
|
|
|
inherit system;
|
|
|
|
specialArgs = { inherit user; };
|
|
|
|
specialArgs = { inherit user; };
|
|
|
|
modules = [
|
|
|
|
modules = [
|
|
|
|
./elnupad
|
|
|
|
./thinkpads
|
|
|
|
./configuration.nix
|
|
|
|
./configuration.nix
|
|
|
|
./desktop.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.nixosModules.home-manager {
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
@ -23,7 +30,34 @@ in
|
|
|
|
home-manager.users.${user} = {
|
|
|
|
home-manager.users.${user} = {
|
|
|
|
imports = [
|
|
|
|
imports = [
|
|
|
|
(import ./home.nix)
|
|
|
|
(import ./home.nix)
|
|
|
|
(import ./elnupad/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 = {
|
|
|
|
|
|
|
|
useGlobalPkgs = true;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
|
|
|
|
home-manager.extraSpecialArgs = { inherit user; };
|
|
|
|
|
|
|
|
home-manager.users.${user} = {
|
|
|
|
|
|
|
|
imports = [
|
|
|
|
|
|
|
|
(import ./home.nix)
|
|
|
|
|
|
|
|
(import ./thinkpads/home.nix)
|
|
|
|
];
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -37,6 +71,9 @@ in
|
|
|
|
./virtualbox
|
|
|
|
./virtualbox
|
|
|
|
./configuration.nix
|
|
|
|
./configuration.nix
|
|
|
|
./desktop.nix
|
|
|
|
./desktop.nix
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
networking.hostName = "virtualbox";
|
|
|
|
|
|
|
|
}
|
|
|
|
home-manager.nixosModules.home-manager {
|
|
|
|
home-manager.nixosModules.home-manager {
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|