mirror of
https://codeberg.org/muon/home.git
synced 2026-03-09 11:53:12 +00:00
Add minimal modular setup
This commit is contained in:
commit
e81d8c9be4
19 changed files with 351 additions and 0 deletions
7
modules/nixos/system/default.nix
Normal file
7
modules/nixos/system/default.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{ pkgs, lib, ... }: {
|
||||
imports = [
|
||||
./locale.nix
|
||||
./programs.nix
|
||||
./services.nix
|
||||
];
|
||||
}
|
||||
10
modules/nixos/system/locale.nix
Normal file
10
modules/nixos/system/locale.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{ pkgs, lib, config, ... }: {
|
||||
time.timeZone = "Etc/UTC";
|
||||
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
console = if config.mods.xorg.enable then {
|
||||
useXkbConfig = true;
|
||||
} else {
|
||||
keymap = "us";
|
||||
};
|
||||
}
|
||||
11
modules/nixos/system/programs.nix
Normal file
11
modules/nixos/system/programs.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{ pkgs, lib, ... }: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
vim
|
||||
wget
|
||||
];
|
||||
|
||||
programs.gnupg.agent = {
|
||||
enable = true;
|
||||
enableSSHSupport = true;
|
||||
};
|
||||
}
|
||||
3
modules/nixos/system/services.nix
Normal file
3
modules/nixos/system/services.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{ pkgs, lib, ... }: {
|
||||
services.openssh.enable = true;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue