mirror of
https://forgejo.merr.is/annika/nixos.git
synced 2025-12-12 07:25:31 -05:00
Switched To A New/Modified Structure
Based heavily on https://github.com/nmasur/dotfiles
This commit is contained in:
parent
634a129840
commit
99a16590b3
25 changed files with 495 additions and 703 deletions
40
modules/common/default.nix
Normal file
40
modules/common/default.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{ config, lib, pkgs, ...}:
|
||||
{
|
||||
imports = [
|
||||
./applications
|
||||
./programming
|
||||
./utilities
|
||||
];
|
||||
options = {
|
||||
user = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "Primary user of the system";
|
||||
};
|
||||
fullName = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "Puny Hooman readable name of the user";
|
||||
};
|
||||
gui = {
|
||||
enable = lib.mkEnableOption {
|
||||
description = "Enable graphics.";
|
||||
default = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
config =
|
||||
let
|
||||
stateVersion = "23.11";
|
||||
in
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
vim
|
||||
wget
|
||||
curl
|
||||
python3
|
||||
age
|
||||
sops
|
||||
];
|
||||
home-manager.users.${config.user}.home.stateVersion = stateVersion;
|
||||
home-manager.users.root.home.stateVersion = stateVersion;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue