allow electron insecure

This commit is contained in:
alex 2023-06-25 10:54:22 -04:00
parent d98cecb892
commit 67e028a595
4 changed files with 30 additions and 20 deletions

View File

@ -6,23 +6,27 @@
home.username = "alex"; home.username = "alex";
home.homeDirectory = "/home/alex"; home.homeDirectory = "/home/alex";
# Aliases
home.shellAliases = {
"git-override" = "git add . && git commit --amend --no-edit && git push --force-with-lease";
};
# Packages that should be installed to the user profile. # Packages that should be installed to the user profile.
home.packages = with pkgs; [ home.packages = with pkgs; [
blender
discord discord
etcher
firefox firefox
flameshot
gimp-with-plugins
gnucash gnucash
grafx2
jellyfin-media-player
keepassxc keepassxc
krita
libreoffice
lutris lutris
mpv mpv
nextcloud-client nextcloud-client
nixpkgs-fmt nixpkgs-fmt
spotify spotify
steam steam
ventoy
winetricks winetricks
wineWowPackages.unstableFull wineWowPackages.unstableFull
yt-dlp yt-dlp
@ -40,6 +44,11 @@
# User software configurations # User software configurations
programs = { programs = {
bash = {
shellAliases = {
"git-override" = "git add . && git commit --amend --no-edit && git push --force-with-lease";
};
};
git = { git = {
enable = true; enable = true;
userEmail = "alexmat2on@protonmail.com"; userEmail = "alexmat2on@protonmail.com";
@ -53,7 +62,7 @@
enable = true; enable = true;
extraConfig = '' extraConfig = ''
background_tint 0.2 background_tint 0.2
background_image /home/alex/Downloads/artificialos/aos1.png background_image ${pkgs.atau-wallpapers}/share/backgrounds/atau-wallpapers/aos1.png
background_image_layout centered background_image_layout centered
modify_font cell_width 110% modify_font cell_width 110%
@ -62,7 +71,7 @@
window_margin_width 10 window_margin_width 10
window_padding_width 2 window_padding_width 2
''; '';
theme = "Adventure Time"; theme = "Rosé Pine Dawn";
font.package = pkgs.victor-mono; font.package = pkgs.victor-mono;
font.name = "Victor Mono"; font.name = "Victor Mono";
font.size = 12; font.size = 12;

View File

@ -7,17 +7,17 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1687128134, "lastModified": 1687541340,
"narHash": "sha256-6O3MUIm5dJMRUw4VxYQFtTvnvemzS59HMyulZ5TEqCg=", "narHash": "sha256-l1Va3mygpLmtV0CeaHGETvb0y5SwWD3kM4dBu5IX9Jw=",
"ref": "main", "ref": "main",
"rev": "b8db8ac34275a625ac6f6f51ad435227526d54f0", "rev": "1e72f4b1e9b7a2991e3ccdebbe75d312f016da3b",
"revCount": 4, "revCount": 10,
"type": "git", "type": "git",
"url": "https://git.atauno.com/atau/atau-nixpkgs" "url": "https://git.atauno.com/atau/atau-nixpkgs"
}, },
"original": { "original": {
"ref": "main", "ref": "main",
"rev": "b8db8ac34275a625ac6f6f51ad435227526d54f0", "rev": "1e72f4b1e9b7a2991e3ccdebbe75d312f016da3b",
"type": "git", "type": "git",
"url": "https://git.atauno.com/atau/atau-nixpkgs" "url": "https://git.atauno.com/atau/atau-nixpkgs"
} }

View File

@ -4,21 +4,20 @@
inputs = { inputs = {
nixpkgs.url = github:NixOS/nixpkgs/nixos-23.05; nixpkgs.url = github:NixOS/nixpkgs/nixos-23.05;
atau-nixpkgs.url = "git+https://git.atauno.com/atau/atau-nixpkgs?ref=main&rev=b8db8ac34275a625ac6f6f51ad435227526d54f0"; atau-nixpkgs.url = "git+https://git.atauno.com/atau/atau-nixpkgs?ref=main&rev=1e72f4b1e9b7a2991e3ccdebbe75d312f016da3b";
atau-nixpkgs.inputs.nixpkgs.follows = "nixpkgs"; atau-nixpkgs.inputs.nixpkgs.follows = "nixpkgs";
home-manager.url = "github:nix-community/home-manager/release-23.05"; home-manager.url = "github:nix-community/home-manager/release-23.05";
home-manager.inputs.nixpkgs.follows = "nixpkgs"; home-manager.inputs.nixpkgs.follows = "nixpkgs";
}; };
outputs = inputs@{ nixpkgs, atau-nixpkgs, home-manager, ... }: outputs = inputs@{ self, nixpkgs, atau-nixpkgs, home-manager, ... }:
let let
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = import nixpkgs { pkgs = import nixpkgs {
inherit system; inherit system;
config.allowUnfree = true; config.allowUnfree = true;
# note: atau-nixpkgs currently only provides the `theme-platinum9` package which is broken due to gtk2 being unsupported in newer xfce overlays = [ atau-nixpkgs.overlays.default ];
overlays = [ atau-nixpkgs.overlay ];
}; };
in in
{ {

View File

@ -14,6 +14,10 @@
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
nixpkgs.config.permittedInsecurePackages = [
"electron-12.2.3"
];
hardware.system76.enableAll = true; hardware.system76.enableAll = true;
# Use the systemd-boot EFI boot loader. # Use the systemd-boot EFI boot loader.
@ -86,9 +90,6 @@
# services.xserver.layout = "us"; # services.xserver.layout = "us";
# services.xserver.xkbOptions = "eurosign:e,caps:escape"; # services.xserver.xkbOptions = "eurosign:e,caps:escape";
# Enable CUPS to print documents.
# services.printing.enable = true;
# Enable blueooth # Enable blueooth
hardware.bluetooth.enable = true; hardware.bluetooth.enable = true;
@ -147,6 +148,7 @@
# List packages installed in system profile. To search, run: # List packages installed in system profile. To search, run:
# $ nix search wget # $ nix search wget
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
atau-wallpapers
blueman blueman
dxvk dxvk
font-manager font-manager
@ -154,7 +156,7 @@
mesa_22_3 mesa_22_3
pavucontrol pavucontrol
unzip unzip
vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. vim
vulkan-extension-layer vulkan-extension-layer
wget wget
]; ];