Add laptop config

This commit is contained in:
Kiana Sheibani 2022-01-06 22:16:45 -05:00
parent 5325723d7e
commit b8e127818a
23 changed files with 32 additions and 9 deletions

View file

@ -3,11 +3,6 @@ nixpkgs, # The flake's input version of nixpkgs
... }: ... }:
let hashedPassword = "$6$lokU/kizIJ/HwEI8$N6c80K0.VHkFBaOMcS8Bc1Fz5bx8qqTRH8brf0.duTOkf4Mja90bLwki8IVCBVpHnj7WqEkF4.CtZA6WczeqQ1"; let hashedPassword = "$6$lokU/kizIJ/HwEI8$N6c80K0.VHkFBaOMcS8Bc1Fz5bx8qqTRH8brf0.duTOkf4Mja90bLwki8IVCBVpHnj7WqEkF4.CtZA6WczeqQ1";
in { in {
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];
nix.package = pkgs.nixFlakes; nix.package = pkgs.nixFlakes;
nix.extraOptions = '' nix.extraOptions = ''
experimental-features = nix-command flakes experimental-features = nix-command flakes
@ -85,5 +80,4 @@ in {
# Before changing this value read the documentation for this option # Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "21.11"; # Did you read the comment? system.stateVersion = "21.11"; # Did you read the comment?
} }

View file

@ -0,0 +1,6 @@
{ config, pkgs, ... }:
{
imports = [
./hardware-configuration.nix
];
}

View file

@ -0,0 +1,2 @@
{ ... }:
{}

View file

@ -19,20 +19,37 @@ outputs = { self,
lib = nixpkgs.lib; lib = nixpkgs.lib;
in { in {
nixosConfigurations = { nixosConfigurations = {
"kiana-pc" = lib.makeOverridable lib.nixosSystem { "desktop" = lib.makeOverridable lib.nixosSystem {
inherit system; inherit system;
modules = [ modules = [
{ _module.args = moduleArgs; } { _module.args = moduleArgs; }
./config ./common/config
./desktop/config
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;
home-manager.users.kiana = import ./home-manager; home-manager.users.${username} = import ./desktop/home-manager;
home-manager.extraSpecialArgs = moduleArgs; home-manager.extraSpecialArgs = moduleArgs;
} }
]; ];
}; };
"laptop" = lib.makeOverridable lib.nixosSystem {
inherit system;
modules = [
{ _module.args = moduleArgs }
./common/config
./laptop/config
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.${username} = import ./laptop/home-manager;
home-manager.extraSpecialArgs = moduleArgs;
}
];
};
}; };
}; };
} }

View file

@ -0,0 +1,2 @@
{ ... }:
{}

View file

@ -0,0 +1,2 @@
{ ... }:
{}