feat: initial commit
add initial NixOS Configuration to git
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
ohMyZsh = {
|
||||
enable = true;
|
||||
plugins = [ "git" "man" "history-substring-search" ];
|
||||
theme = "robbyrussell";
|
||||
};
|
||||
syntaxHighlighting.enable = true;
|
||||
autosuggestions.enable = true;
|
||||
};
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
{ config, lib, options, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.features.swayDesktop;
|
||||
in
|
||||
{
|
||||
options = {
|
||||
features.swayDesktop.enable = lib.mkEnableOption "Enable Sway Desktop";
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.sway = {
|
||||
enable = true;
|
||||
wrapperFeatures.gtk = true;
|
||||
};
|
||||
environment.systemPackages = with pkgs; [
|
||||
i3status-rust
|
||||
sway-launcher-desktop
|
||||
];
|
||||
fonts.packages = with pkgs; [
|
||||
noto-fonts
|
||||
noto-fonts-emoji
|
||||
font-awesome
|
||||
];
|
||||
};
|
||||
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
users.users.emmathorpe = {
|
||||
isNormalUser = true;
|
||||
home = "/home/emmathorpe";
|
||||
description = "Emma Thorpe";
|
||||
extraGroups = [ "wheel" ];
|
||||
shell = pkgs.zsh;
|
||||
packages = lib.mkIf (config.features.swayDesktop.enable == true) [
|
||||
pkgs.discord
|
||||
];
|
||||
};
|
||||
programs.firefox = lib.mkIf(config.features.swayDesktop.enable == true) {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user