mirror of
https://github.com/lightly-toasted/nix-config.git
synced 2026-05-07 13:36:24 +00:00
refactor: move common modules to modules/ directory
This commit is contained in:
parent
3abbd61cfa
commit
bf7e249d5b
35 changed files with 67 additions and 63 deletions
4
modules/core/filesystem.nix
Normal file
4
modules/core/filesystem.nix
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
fileSystems."/" = { device = "/dev/vda1"; fsType = "ext4"; };
|
||||
swapDevices = [ { device = "/dev/vda2"; } ];
|
||||
}
|
||||
10
modules/core/packages.nix
Normal file
10
modules/core/packages.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
vim
|
||||
wget
|
||||
sbctl
|
||||
];
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
}
|
||||
8
modules/core/sops.nix
Normal file
8
modules/core/sops.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{ rootPath, ... }:
|
||||
|
||||
{
|
||||
sops.defaultSopsFile = rootPath + /secrets/secrets.yaml;
|
||||
sops.defaultSopsFormat = "yaml";
|
||||
|
||||
sops.age.keyFile = "/home/toast/.config/sops/age/keys.txt";
|
||||
}
|
||||
24
modules/core/time.nix
Normal file
24
modules/core/time.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
time.timeZone = "Asia/Seoul";
|
||||
i18n = {
|
||||
defaultLocale = "en_US.UTF-8";
|
||||
extraLocaleSettings = {
|
||||
LC_ADDRESS = "ko_KR.UTF-8";
|
||||
LC_IDENTIFICATION = "ko_KR.UTF-8";
|
||||
LC_MEASUREMENT = "ko_KR.UTF-8";
|
||||
LC_MONETARY = "ko_KR.UTF-8";
|
||||
LC_NAME = "ko_KR.UTF-8";
|
||||
LC_NUMERIC = "ko_KR.UTF-8";
|
||||
LC_PAPER = "ko_KR.UTF-8";
|
||||
LC_TELEPHONE = "ko_KR.UTF-8";
|
||||
LC_TIME = "ko_KR.UTF-8";
|
||||
};
|
||||
inputMethod = {
|
||||
enable = true;
|
||||
type = "kime";
|
||||
kime.iconColor = "White";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue