mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-26 23:14:57 +08:00
24 lines
616 B
Nix
24 lines
616 B
Nix
# Configuration common to all Linux systems
|
|
{ flake, lib, ... }:
|
|
|
|
let
|
|
inherit (flake) config inputs;
|
|
inherit (inputs) self;
|
|
in
|
|
{
|
|
imports = [
|
|
{
|
|
users.users.${config.me.username}.isNormalUser = lib.mkDefault true;
|
|
home-manager.users.${config.me.username} = { };
|
|
home-manager.sharedModules = [
|
|
self.homeModules.default
|
|
self.homeModules.linux-only
|
|
];
|
|
}
|
|
self.nixosModules.common
|
|
inputs.agenix.nixosModules.default # Used in github-runner.nix & hedgedoc.nix
|
|
./linux/current-location.nix
|
|
];
|
|
|
|
boot.loader.grub.configurationLimit = 5; # Who needs more?
|
|
}
|