2022-01-06 21:14:02 -05:00
|
|
|
{
|
|
|
|
description = "System conf";
|
2023-01-03 21:17:49 -05:00
|
|
|
inputs = {
|
2022-04-20 23:40:29 -04:00
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
2022-01-06 21:14:02 -05:00
|
|
|
nur.url = "github:nix-community/NUR";
|
2023-01-07 20:54:12 -05:00
|
|
|
|
2022-03-04 13:25:16 -05:00
|
|
|
nixos-hardware.url = "github:NixOS/nixos-hardware";
|
2023-01-07 20:54:12 -05:00
|
|
|
mobile-nixos.url = "github:wentam/mobile-nixos/ppp-pr";
|
|
|
|
mobile-nixos.flake = false;
|
2022-01-13 21:50:37 -05:00
|
|
|
|
2022-01-06 21:14:02 -05:00
|
|
|
home-manager.url = "github:nix-community/home-manager/master";
|
|
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
2022-10-26 15:54:00 -04:00
|
|
|
|
|
|
|
tokyo-night-sddm-src.url = "github:rototrash/tokyo-night-sddm";
|
|
|
|
tokyo-night-sddm-src.flake = false;
|
2022-01-06 21:14:02 -05:00
|
|
|
};
|
|
|
|
outputs = { self,
|
|
|
|
nixpkgs,
|
|
|
|
home-manager,
|
2022-01-13 21:50:37 -05:00
|
|
|
nixos-hardware,
|
2023-01-07 22:32:56 -05:00
|
|
|
mobile-nixos,
|
2022-01-06 21:14:02 -05:00
|
|
|
...}@inputs:
|
|
|
|
let
|
|
|
|
system = "x86_64-linux";
|
|
|
|
username = "kiana";
|
2022-10-26 15:54:00 -04:00
|
|
|
fullname = "Kiana Sheibani";
|
2023-01-03 21:17:49 -05:00
|
|
|
moduleArgs = { inherit system username fullname; } // inputs;
|
2022-01-06 21:14:02 -05:00
|
|
|
lib = nixpkgs.lib;
|
|
|
|
in {
|
|
|
|
nixosConfigurations = {
|
2022-10-26 15:54:00 -04:00
|
|
|
"${username}-desktop" = lib.makeOverridable lib.nixosSystem {
|
2022-01-06 21:14:02 -05:00
|
|
|
inherit system;
|
2022-01-11 22:38:54 -05:00
|
|
|
modules = [
|
2023-01-03 21:17:49 -05:00
|
|
|
./config
|
|
|
|
|
|
|
|
./platform.nix
|
|
|
|
./hardware-configuration/desktop.nix
|
|
|
|
{ _module.args = moduleArgs;
|
2023-01-07 20:52:23 -05:00
|
|
|
platform = "desktop"; }
|
2022-01-11 22:38:54 -05:00
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{
|
2023-01-03 21:17:49 -05:00
|
|
|
home-manager.users.${username} = import ./home-manager;
|
|
|
|
|
2022-01-11 22:38:54 -05:00
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
2023-01-07 20:52:23 -05:00
|
|
|
home-manager.sharedModules = [ ./platform.nix { platform = "desktop"; } ];
|
2022-01-11 22:38:54 -05:00
|
|
|
home-manager.extraSpecialArgs = moduleArgs;
|
|
|
|
}
|
|
|
|
];
|
2022-01-06 21:14:02 -05:00
|
|
|
};
|
2022-01-06 22:16:45 -05:00
|
|
|
|
2022-10-26 15:54:00 -04:00
|
|
|
"${username}-laptop" = lib.makeOverridable lib.nixosSystem {
|
2022-01-06 22:16:45 -05:00
|
|
|
inherit system;
|
2022-01-11 22:38:54 -05:00
|
|
|
modules = [
|
2023-01-03 21:17:49 -05:00
|
|
|
./config
|
|
|
|
|
|
|
|
{ _module.args = moduleArgs;
|
2023-01-07 20:52:23 -05:00
|
|
|
platform = "laptop"; }
|
2023-01-03 21:17:49 -05:00
|
|
|
./platform.nix
|
|
|
|
./hardware-configuration/laptop.nix
|
2022-01-11 22:38:54 -05:00
|
|
|
home-manager.nixosModules.home-manager
|
2022-01-13 21:50:37 -05:00
|
|
|
nixos-hardware.nixosModules.microsoft-surface
|
2022-01-11 22:38:54 -05:00
|
|
|
{
|
2023-01-03 21:17:49 -05:00
|
|
|
home-manager.users.${username} = import ./home-manager;
|
|
|
|
|
2022-01-11 22:38:54 -05:00
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
2023-01-07 20:52:23 -05:00
|
|
|
home-manager.sharedModules = [ ./platform.nix { platform = "laptop"; } ];
|
2022-01-11 22:38:54 -05:00
|
|
|
home-manager.extraSpecialArgs = moduleArgs;
|
|
|
|
}
|
|
|
|
];
|
2022-01-06 22:16:45 -05:00
|
|
|
};
|
2023-01-07 20:54:12 -05:00
|
|
|
|
|
|
|
"${username}-mobile" = lib.makeOverridable lib.nixosSystem {
|
|
|
|
inherit system;
|
|
|
|
modules = [
|
|
|
|
./config
|
2023-01-07 22:19:04 -05:00
|
|
|
./mobile/config.nix
|
2023-01-07 20:54:12 -05:00
|
|
|
|
|
|
|
{ _module.args = moduleArgs;
|
|
|
|
platform = "mobile"; }
|
|
|
|
./platform.nix
|
|
|
|
./hardware-configuration/mobile.nix
|
|
|
|
home-manager.nixosModules.home-manager
|
2023-01-07 22:19:04 -05:00
|
|
|
(import (mobile-nixos + /lib/configuration.nix) { device = "pine64-pinephonepro"; })
|
2023-01-07 20:54:12 -05:00
|
|
|
{
|
|
|
|
home-manager.users.${username} = import ./mobile/home-manager.nix;
|
|
|
|
|
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.sharedModules = [ ./platform.nix { platform = "mobile"; } ];
|
|
|
|
home-manager.extraSpecialArgs = moduleArgs;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2022-01-06 21:14:02 -05:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|