Add laptop config
This commit is contained in:
parent
5325723d7e
commit
b8e127818a
|
@ -3,11 +3,6 @@ nixpkgs, # The flake's input version of nixpkgs
|
|||
... }:
|
||||
let hashedPassword = "$6$lokU/kizIJ/HwEI8$N6c80K0.VHkFBaOMcS8Bc1Fz5bx8qqTRH8brf0.duTOkf4Mja90bLwki8IVCBVpHnj7WqEkF4.CtZA6WczeqQ1";
|
||||
in {
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
nix.package = pkgs.nixFlakes;
|
||||
nix.extraOptions = ''
|
||||
experimental-features = nix-command flakes
|
||||
|
@ -85,5 +80,4 @@ in {
|
|||
# Before changing this value read the documentation for this option
|
||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||
system.stateVersion = "21.11"; # Did you read the comment?
|
||||
|
||||
}
|
Before Width: | Height: | Size: 1.4 MiB After Width: | Height: | Size: 1.4 MiB |
6
desktop/config/default.nix
Normal file
6
desktop/config/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
}
|
2
desktop/home-manager/default.nix
Normal file
2
desktop/home-manager/default.nix
Normal file
|
@ -0,0 +1,2 @@
|
|||
{ ... }:
|
||||
{}
|
23
flake.nix
23
flake.nix
|
@ -19,16 +19,33 @@ outputs = { self,
|
|||
lib = nixpkgs.lib;
|
||||
in {
|
||||
nixosConfigurations = {
|
||||
"kiana-pc" = lib.makeOverridable lib.nixosSystem {
|
||||
"desktop" = lib.makeOverridable lib.nixosSystem {
|
||||
inherit system;
|
||||
modules = [
|
||||
{ _module.args = moduleArgs; }
|
||||
./config
|
||||
./common/config
|
||||
./desktop/config
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.kiana = import ./home-manager;
|
||||
home-manager.users.${username} = import ./desktop/home-manager;
|
||||
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;
|
||||
}
|
||||
];
|
||||
|
|
2
laptop/config/default.nix
Normal file
2
laptop/config/default.nix
Normal file
|
@ -0,0 +1,2 @@
|
|||
{ ... }:
|
||||
{}
|
2
laptop/home-manager/default.nix
Normal file
2
laptop/home-manager/default.nix
Normal file
|
@ -0,0 +1,2 @@
|
|||
{ ... }:
|
||||
{}
|
Loading…
Reference in a new issue