mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-05-24 13:26:06 -07:00
Compare commits
No commits in common. "9399b584f8538141d77aa3f6edc83d8111b7b57d" and "3beb73443154631398e1ab737a5f7790863a4478" have entirely different histories.
9399b584f8
...
3beb734431
@ -18,7 +18,7 @@
|
|||||||
# Modules
|
# Modules
|
||||||
modules = {
|
modules = {
|
||||||
desktop = {
|
desktop = {
|
||||||
enable = true;
|
browser.enable = true;
|
||||||
gnome.enable = true;
|
gnome.enable = true;
|
||||||
};
|
};
|
||||||
devel = {
|
devel = {
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
# Modules
|
# Modules
|
||||||
modules = {
|
modules = {
|
||||||
desktop = {
|
desktop = {
|
||||||
enable = true;
|
browser.enable = true;
|
||||||
gnome.enable = true;
|
gnome.enable = true;
|
||||||
};
|
};
|
||||||
devel = {
|
devel = {
|
||||||
|
@ -25,13 +25,12 @@
|
|||||||
docker-compose
|
docker-compose
|
||||||
podman-tui
|
podman-tui
|
||||||
dive
|
dive
|
||||||
appgate-sdp
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# Modules
|
# Modules
|
||||||
modules = {
|
modules = {
|
||||||
desktop = {
|
desktop = {
|
||||||
enable = true;
|
browser.enable = true;
|
||||||
gnome.enable = true;
|
gnome.enable = true;
|
||||||
};
|
};
|
||||||
devel = {
|
devel = {
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
# Modules
|
# Modules
|
||||||
modules = {
|
modules = {
|
||||||
desktop = {
|
desktop = {
|
||||||
enable = true;
|
browser.enable = true;
|
||||||
gnome.enable = true;
|
gnome.enable = true;
|
||||||
};
|
};
|
||||||
devel = {
|
devel = {
|
||||||
|
@ -36,10 +36,4 @@
|
|||||||
{ "url" = "https://old.reddit.com/r/nixos/"; name = "nixos-reddit"; }
|
{ "url" = "https://old.reddit.com/r/nixos/"; name = "nixos-reddit"; }
|
||||||
{ "url" = "https://nixos.wiki/"; name = "nixos-wiki"; }
|
{ "url" = "https://nixos.wiki/"; name = "nixos-wiki"; }
|
||||||
]; }
|
]; }
|
||||||
{ "name" = "Work"; "children" = [
|
|
||||||
{ url = "https://webmail.apps.mil/owa"; name = "WebMail";}
|
|
||||||
{ url = "https://dod.teams.microsoft.us/"; name = "Teams";}
|
|
||||||
{ url = "https://usaf-my.dps.mil/"; name = "OneDrive";}
|
|
||||||
]; }
|
|
||||||
|
|
||||||
]
|
]
|
@ -1,16 +1,9 @@
|
|||||||
{ config, lib, pkgs, user, ... }:
|
{ config, lib, pkgs, user, ... }:
|
||||||
|
|
||||||
let cfg1 = config.modules.desktop;
|
let cfg = config.modules.desktop.browser;
|
||||||
cfg2 = config.modules.programs.chrome;
|
|
||||||
in {
|
in {
|
||||||
options.modules.programs.chrome = with lib; {
|
# Enable option declared in firefox.nix
|
||||||
enable = lib.mkOption {
|
config = lib.mkIf cfg.enable {
|
||||||
type = types.bool;
|
|
||||||
default = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf (cfg1.enable && cfg2.enable) {
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
google-chrome # Web browser developed by Google.
|
google-chrome # Web browser developed by Google.
|
||||||
];
|
];
|
||||||
@ -53,7 +46,7 @@ in {
|
|||||||
# Setup bookmarks
|
# Setup bookmarks
|
||||||
"BookmarkBarEnabled" = true;
|
"BookmarkBarEnabled" = true;
|
||||||
"ShowAppsShortcutInBookmarkBar" = false;
|
"ShowAppsShortcutInBookmarkBar" = false;
|
||||||
"ManagedBookmarks" = import ./bookmarks.nix;
|
"ManagedBookmarks" = import ./bookmarks/chrome.nix;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
4
provision/modules/desktop/browser/default.nix
Normal file
4
provision/modules/desktop/browser/default.nix
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
imports = [ ./chrome.nix ./firefox.nix ];
|
||||||
|
}
|
@ -1,17 +1,10 @@
|
|||||||
{ config, lib, pkgs, user, ... }:
|
{ config, lib, pkgs, user, ... }:
|
||||||
|
|
||||||
let cfg1 = config.modules.desktop;
|
let cfg = config.modules.desktop.browser;
|
||||||
cfg2 = config.modules.programs.firefox;
|
|
||||||
in {
|
in {
|
||||||
options.modules.programs.firefox = with lib; {
|
options.modules.desktop.browser.enable = lib.mkEnableOption "browser";
|
||||||
enable = lib.mkOption {
|
config = lib.mkIf cfg.enable {
|
||||||
type = types.bool;
|
# Install applications for CAC
|
||||||
default = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf (cfg1.enable && cfg2.enable) {
|
|
||||||
# Applications for CAC usage
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
opensc
|
opensc
|
||||||
pcsc-tools
|
pcsc-tools
|
||||||
@ -22,7 +15,7 @@ in {
|
|||||||
programs.firefox = {
|
programs.firefox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
profiles.default = {
|
profiles.default = {
|
||||||
bookmarks = import ./bookmarks.nix;
|
bookmarks = import ./bookmarks/firefox.nix;
|
||||||
isDefault = true;
|
isDefault = true;
|
||||||
name = "default";
|
name = "default";
|
||||||
settings = {
|
settings = {
|
@ -1,47 +1,39 @@
|
|||||||
{ config, lib, pkgs, user, inputs, ... }:
|
{ config, lib, pkgs, user, inputs, ... }:
|
||||||
|
{
|
||||||
|
imports = [ ./browser ./keyd.nix ./gnome.nix ];
|
||||||
|
|
||||||
let cfg = config.modules.desktop;
|
environment.systemPackages = with pkgs; [
|
||||||
in {
|
bc # Arbitrary-precision arithmetic language.
|
||||||
imports = [
|
fzf # Command-line fuzzy finder for Unix-like operating systems.
|
||||||
./keyd.nix
|
gamemode # Optimizes system performance for gaming by adjusting system settings.
|
||||||
./gnome.nix
|
vesktop # Voice, video, and text communication platform for communities and friends.
|
||||||
|
inkscape # Vector graphics editor for creating illustrations, icons, logos, diagrams, and more.
|
||||||
|
libreoffice-fresh # Office suite compatible with Microsoft Office.
|
||||||
|
xournal # Note-taking and sketching application.
|
||||||
|
mpv # Media player for playing audio and video files.
|
||||||
|
p7zip # Command-line file archiver with high compression ratio.
|
||||||
|
gimp # GNU Image Manipulation Program for editing and composing raster images.
|
||||||
];
|
];
|
||||||
|
|
||||||
options.modules.desktop.enable = lib.mkEnableOption "desktop";
|
# xdg-desktop-portal settings
|
||||||
config = lib.mkIf cfg.enable {
|
services.dbus.enable = true;
|
||||||
environment.systemPackages = with pkgs; [
|
xdg.mime = {
|
||||||
bc # Arbitrary-precision arithmetic language.
|
enable = true;
|
||||||
fzf # Command-line fuzzy finder for Unix-like operating systems.
|
defaultApplications = {
|
||||||
gamemode # Optimizes system performance for gaming by adjusting system settings.
|
"inode/directory" = [ "pcmanfm.desktop" ];
|
||||||
vesktop # Voice, video, and text communication platform for communities and friends.
|
"text/html" = [ "google-chrome.desktop" ];
|
||||||
inkscape # Vector graphics editor for creating illustrations, icons, logos, diagrams, and more.
|
"x-scheme-handler/http" = [ "google-chrome.desktop" ];
|
||||||
libreoffice-fresh # Office suite compatible with Microsoft Office.
|
"x-scheme-handler/https" = [ "google-chrome.desktop" ];
|
||||||
xournal # Note-taking and sketching application.
|
"x-scheme-handler/ftp" = [ "google-chrome.desktop" ];
|
||||||
mpv # Media player for playing audio and video files.
|
"x-scheme-handler/chrome" = [ "google-chrome.desktop" ];
|
||||||
p7zip # Command-line file archiver with high compression ratio.
|
"x-scheme-handler/about" = [ "google-chrome.desktop" ];
|
||||||
gimp # GNU Image Manipulation Program for editing and composing raster images.
|
"x-scheme-handler/unknown" = [ "google-chrome.desktop" ];
|
||||||
];
|
"application/x-extension-htm" = [ "google-chrome.desktop" ];
|
||||||
|
"application/x-extension-html" = [ "google-chrome.desktop" ];
|
||||||
# xdg-desktop-portal settings
|
"application/x-extension-shtml" = [ "google-chrome.desktop" ];
|
||||||
services.dbus.enable = true;
|
"application/xhtml+xml" = [ "google-chrome.desktop" ];
|
||||||
xdg.mime = {
|
"application/x-extension-xhtml" = [ "google-chrome.desktop" ];
|
||||||
enable = true;
|
"application/x-extension-xht" = [ "google-chrome.desktop" ];
|
||||||
defaultApplications = {
|
"application/pdf" = [ "google-chrome.desktop" ]; };
|
||||||
"inode/directory" = [ "pcmanfm.desktop" ];
|
|
||||||
"text/html" = [ "google-chrome.desktop" ];
|
|
||||||
"x-scheme-handler/http" = [ "google-chrome.desktop" ];
|
|
||||||
"x-scheme-handler/https" = [ "google-chrome.desktop" ];
|
|
||||||
"x-scheme-handler/ftp" = [ "google-chrome.desktop" ];
|
|
||||||
"x-scheme-handler/chrome" = [ "google-chrome.desktop" ];
|
|
||||||
"x-scheme-handler/about" = [ "google-chrome.desktop" ];
|
|
||||||
"x-scheme-handler/unknown" = [ "google-chrome.desktop" ];
|
|
||||||
"application/x-extension-htm" = [ "google-chrome.desktop" ];
|
|
||||||
"application/x-extension-html" = [ "google-chrome.desktop" ];
|
|
||||||
"application/x-extension-shtml" = [ "google-chrome.desktop" ];
|
|
||||||
"application/xhtml+xml" = [ "google-chrome.desktop" ];
|
|
||||||
"application/x-extension-xhtml" = [ "google-chrome.desktop" ];
|
|
||||||
"application/x-extension-xht" = [ "google-chrome.desktop" ];
|
|
||||||
"application/pdf" = [ "google-chrome.desktop" ]; };
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./chrome
|
|
||||||
./firefox
|
|
||||||
./git.nix
|
./git.nix
|
||||||
./chezmoi.nix
|
./chezmoi.nix
|
||||||
./kitty.nix
|
./kitty.nix
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
self: super: {
|
|
||||||
appgate-sdp = super.appgate-sdp.overrideAttrs (old: {
|
|
||||||
src = super.fetchurl {
|
|
||||||
url = "https://bin.appgate-sdp.com/6.4/client/appgate-sdp_6.4.0_amd64.deb";
|
|
||||||
sha256 = "sha256-0h6Mz3B7fADGL5tGbrKNYpVIAvRu7Xx0n9OvjOeVCds=";
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user