mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-10 18:22:35 +08:00
continue using gnome on x1c7
This commit is contained in:
parent
e637fcc728
commit
2b456f2eb9
1 changed files with 11 additions and 8 deletions
19
flake.nix
19
flake.nix
|
|
@ -12,18 +12,16 @@
|
|||
let
|
||||
system = "x86_64-linux";
|
||||
# Make configuration for any computer I use in my home office.
|
||||
mkHomeMachine = configurationNix: thinkpadModule: nixpkgs.lib.nixosSystem {
|
||||
mkHomeMachine = configurationNix: extraModules: nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
modules = [
|
||||
modules = ([
|
||||
# System configuration
|
||||
configurationNix
|
||||
thinkpadModule
|
||||
# ./features/virtualization.nix
|
||||
./features/passwordstore.nix
|
||||
./features/syncthing.nix
|
||||
# ./features/virtualization.nix
|
||||
./features/email
|
||||
./features/monitor-brightness.nix
|
||||
./features/desktopish
|
||||
|
||||
# HACK: This should really go under ./features/email
|
||||
({
|
||||
|
|
@ -37,15 +35,20 @@
|
|||
home-manager.useUserPackages = true;
|
||||
home-manager.users.srid = import ./home.nix;
|
||||
}
|
||||
];
|
||||
] ++ extraModules);
|
||||
};
|
||||
in
|
||||
{
|
||||
nixosConfigurations.p71 = mkHomeMachine
|
||||
./hosts/p71.nix
|
||||
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-p53;
|
||||
[
|
||||
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-p53
|
||||
./features/desktopish
|
||||
];
|
||||
nixosConfigurations.x1c7 = mkHomeMachine
|
||||
./hosts/x1c7.nix
|
||||
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-x1-7th-gen;
|
||||
[
|
||||
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-x1-7th-gen
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue