mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-26 23:14:57 +08:00
32 lines
721 B
Nix
32 lines
721 B
Nix
{ self, config, ... }:
|
|
|
|
{
|
|
# Configuration common to all Linux systems
|
|
flake = {
|
|
nixosModules = {
|
|
# NixOS modules that are known to work on nix-darwin.
|
|
common.imports = [
|
|
./nix.nix
|
|
./caches
|
|
./self/primary-as-admin.nix
|
|
];
|
|
|
|
my-home = {
|
|
users.users.${config.people.myself}.isNormalUser = true;
|
|
home-manager.users.${config.people.myself} = {
|
|
imports = [
|
|
self.homeModules.common-linux
|
|
];
|
|
};
|
|
};
|
|
|
|
default.imports = [
|
|
self.nixosModules.home-manager
|
|
self.nixosModules.my-home
|
|
self.nixosModules.common
|
|
./self/self-ide.nix
|
|
./current-location.nix
|
|
];
|
|
};
|
|
};
|
|
}
|