aboutsummaryrefslogtreecommitdiff
path: root/modules/core.nix
diff options
context:
space:
mode:
authorRosa <rosaontheweb@proton.me>2026-03-18 12:04:07 -0400
committerRosa <rosaontheweb@proton.me>2026-03-18 12:04:07 -0400
commitcad9638875c04122b04d47242ddfc76e21e77029 (patch)
treed80077f45b7b0d7513b3af0dabe6d2d992c846b7 /modules/core.nix
parentce19b701046c064a1eb39098d8537b2c4964a86e (diff)
progress on sway configuration
Diffstat (limited to 'modules/core.nix')
-rw-r--r--modules/core.nix55
1 files changed, 55 insertions, 0 deletions
diff --git a/modules/core.nix b/modules/core.nix
new file mode 100644
index 0000000..15d3581
--- /dev/null
+++ b/modules/core.nix
@@ -0,0 +1,55 @@
+{
+ config,
+ lib,
+ pkgs,
+ ...
+}:
+{
+ boot.loader = {
+ efi.canTouchEfiVariables = true;
+ systemd-boot = {
+ enable = true;
+ editor = false;
+ memtest86.enable = true;
+ };
+
+ timeout = 1;
+ };
+
+ environment.systemPackages = with pkgs; [
+ kakoune
+ ];
+
+ hardware.enableRedistributableFirmware = true;
+ nix.settings.experimental-features = [
+ "flakes"
+ "nix-command"
+ ];
+
+ programs = {
+ git = {
+ enable = true;
+ package = pkgs.gitMinimal;
+ };
+
+ nano.enable = false;
+ zsh = {
+ enable = true;
+ setOptions = [ "HIST_IGNORE_ALL_DUPS" ];
+ shellInit = ''
+ PS1="%n@%m %~ %# "
+ '';
+ };
+ };
+
+ users = {
+ defaultUserShell = pkgs.zsh;
+ users.rosa = {
+ enable = lib.mkDefault false;
+ description = "Rosa";
+ extraGroups = [ "wheel" ];
+ isNormalUser = true;
+ openssh.authorizedKeys.keyFiles = [ ./.ssh/id_rosa.pub ];
+ };
+ };
+}