Compare commits

..

2 commits

Author SHA1 Message Date
Aria Nolan a2ffbecf1e added sops-nix 2023-11-21 23:23:41 -05:00
Aria Nolan b189bf3d8e firefox theme, taskwarrior, cleaning 2023-11-21 22:30:31 -05:00
14 changed files with 226 additions and 47 deletions

9
.sops.yaml Normal file
View file

@ -0,0 +1,9 @@
# .sops.yaml
keys:
- age13dpyswy6ezqr2gyty75waanpc9lhjs073vt56z6tvjyzh9mkydaqwsystl
creation_rules:
- path_regex: secrets/secrets.yaml$
key_groups:
- age:
- age13dpyswy6ezqr2gyty75waanpc9lhjs073vt56z6tvjyzh9mkydaqwsystl

View file

@ -68,9 +68,7 @@
"inputs": {
"crane": "crane",
"flake-utils": "flake-utils",
"nixpkgs": [
"nixpkgs"
],
"nixpkgs": "nixpkgs",
"rust-overlay": "rust-overlay"
},
"locked": {
@ -125,6 +123,38 @@
}
},
"nixpkgs": {
"locked": {
"lastModified": 1700390070,
"narHash": "sha256-de9KYi8rSJpqvBfNwscWdalIJXPo8NjdIZcEJum1mH0=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "e4ad989506ec7d71f7302cc3067abd82730a4beb",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-stable": {
"locked": {
"lastModified": 1700342017,
"narHash": "sha256-HaibwlWH5LuqsaibW3sIVjZQtEM/jWtOHX4Nk93abGE=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "decdf666c833a325cb4417041a90681499e06a41",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "release-23.05",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1700204040,
"narHash": "sha256-xSVcS5HBYnD3LTer7Y2K8ZQCDCXMa3QUD1MzRjHzuhI=",
@ -140,6 +170,22 @@
"type": "github"
}
},
"nixpkgs_3": {
"locked": {
"lastModified": 1700108881,
"narHash": "sha256-+Lqybl8kj0+nD/IlAWPPG/RDTa47gff9nbei0u7BntE=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "7414e9ee0b3e9903c24d3379f577a417f0aae5f1",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nur": {
"locked": {
"lastModified": 1700455140,
@ -160,8 +206,9 @@
"helix": "helix",
"home-manager": "home-manager",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs",
"nur": "nur"
"nixpkgs": "nixpkgs_2",
"nur": "nur",
"sops-nix": "sops-nix"
}
},
"rust-overlay": {
@ -189,6 +236,25 @@
"type": "github"
}
},
"sops-nix": {
"inputs": {
"nixpkgs": "nixpkgs_3",
"nixpkgs-stable": "nixpkgs-stable"
},
"locked": {
"lastModified": 1700362823,
"narHash": "sha256-/H7XgvrYM0IbkpWkcdfkOH0XyBM5ewSWT1UtaLvOgKY=",
"owner": "Mic92",
"repo": "sops-nix",
"rev": "49a87c6c827ccd21c225531e30745a9a6464775c",
"type": "github"
},
"original": {
"owner": "Mic92",
"repo": "sops-nix",
"type": "github"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,

View file

@ -18,7 +18,7 @@
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
helix = {
url = "github:helix-editor/helix/master";
inputs.nixpkgs.follows = "nixpkgs";
# inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
@ -26,6 +26,7 @@
};
nixos-hardware.url = "github:NixOs/nixos-hardware/master";
nur.url = "github:nix-community/nur";
sops-nix.url = "github:Mic92/sops-nix";
};
# pass in the urls defined above
@ -37,6 +38,7 @@
helix,
nixos-hardware,
nur,
sops-nix,
...
} @ inputs: let
system = "x86_64-linux";
@ -67,6 +69,7 @@
specialArgs = {inherit inputs;};
modules = [
./hosts/JWST/configuration.nix
sops-nix.nixosModules.sops
# nixos-hardware.nixosModules.dell-xps-15-9520
nixos-hardware.nixosModules.common-gpu-nvidia-disable
{nixpkgs.overlays = overlays;}
@ -83,14 +86,14 @@
};
#homeConfigurations: define options for different users
homeConfigurations."tacocat" = inputs.home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = {inherit inputs;}; # Pass flake inputs to our config
modules = [
{nixpkgs.overlays = overlays;}
./users/tacocat/home.nix
];
};
# homeConfigurations."tacocat" = inputs.home-manager.lib.homeManagerConfiguration {
# inherit pkgs;
# extraSpecialArgs = {inherit inputs;}; # Pass flake inputs to our config
# modules = [
# {nixpkgs.overlays = overlays;}
# ./users/tacocat/home.nix
# ];
# };
# packages.${system}."tacocat" = self.homeConfigurations."tacocat".activationPackage;
};

View file

@ -12,6 +12,11 @@
./hardware-configuration.nix
];
sops.defaultSopsFile = ./secrets/secrets.yaml;
sops.defaultSopsFormat = "yaml";
sops.age.keyFile = "/home/tacocat/.config/sops/age/keys.txt";
boot.loader = {
efi.canTouchEfiVariables = false;
grub = {
@ -53,8 +58,8 @@
# Enable CUPS to print documents.
services.printing.enable = true;
services.geoclue2.enable = true;
services.tlp.enable = true;
services.thermald.enable = true;
# services.tlp.enable = true;
# services.thermald.enable = true;
# Enable sound.
sound.enable = true;
@ -95,12 +100,12 @@
description = "Aria Nolan";
};
programs.river.enable = true;
programs.river.extraPackages = with pkgs; [
swaylock
swayidle
brightnessctl
];
# programs.river.enable = true;
# programs.river.extraPackages = with pkgs; [
# swaylock
# swayidle
# brightnessctl
# ];
programs.sway.enable = true;
programs.sway.wrapperFeatures.gtk = true;
@ -108,6 +113,7 @@
swaylock
swayidle
brightnessctl
wl-mirror
];
programs.waybar.enable = true;
@ -117,6 +123,7 @@
systemPackages = with pkgs; [
vim
exfat
ntfs3g
];
defaultPackages = with pkgs; [
perl

35
secrets/secrets.yaml Normal file
View file

@ -0,0 +1,35 @@
#ENC[AES256_GCM,data:JjngdEl24lzivXSGGtT+BmiEgJv9CYFGoshMp341WTVhGZb0CfJw/INV5Hds4It+b5VdKwsq,iv:z7QQf9jHo/UnOeFL5Xr+Gigvumj5oeCw+qbuDDvC05k=,tag:E76DCMWb0jJtNpjVEY7Tiw==,type:comment]
#ENC[AES256_GCM,data:HICA26c4UzeSp1IhNUkoFukr14zNLQ6PRzXa,iv:Ai2VRUy4F0l58M+zP8UTJ+HwpnnntvhXqRGDFKgfxoc=,tag:u3Z1J+6jjDStKsPVcdQ48w==,type:comment]
#ENC[AES256_GCM,data:91rUTDQieSAoP34dVPhUVQ==,iv:yiCh0c97u0FcofOfTkvJG0kee12GyObDQWiV2cLeN8g=,tag:RxtR8qSFw/U3NdKJl/6q3g==,type:comment]
#ENC[AES256_GCM,data:fBniAj/OEUphfzuouN4V,iv:oDvxL66JaHok1Bmd4gVc85/5bHpVPgixT/DM92eeqwI=,tag:ZQsqpszjmPThhkFaeI3hfg==,type:comment]
#ENC[AES256_GCM,data:5vniSSqRnOLyiyV6ylKevv8AZsJw,iv:Z5mefVGn9jSCPJZRkwjPZ2alkUwao0bCJVS3aRY3egE=,tag:aHZcDJWmHx1MEux6bKuWFg==,type:comment]
#ENC[AES256_GCM,data:al064LOcqMiJljtxOtEkYPiTFanG,iv:mqO28HpExCICHRPbmyo3LK7QFysAOzf8Mn666QgC/9Q=,tag:Pcb0VSAJ3TkQLbDoobJTkA==,type:comment]
#ENC[AES256_GCM,data:tMg+HbmZGZLzc3WZJVrwmOi7JjCBbkJdWRwm,iv:3pDsdJX2OSactrP9CQeNvQR7q01qXo/BR4FKLhcaiyQ=,tag:Wxlf6SuGWgGEVvG7Sjcojw==,type:comment]
#ENC[AES256_GCM,data:Qs7LdUYBaoCLtlu+VdIHrIsA,iv:lWJsId1PA6mc+E0+mP55EfoCk5rixb+Z91XtUg6ivCw=,tag:XVDzTi/poTsRT6m3dbcLZA==,type:comment]
#ENC[AES256_GCM,data:73KcTxpT6YfRex8=,iv:3pLvjR/BOayKYUvCaZbW4JbCpbNqJ0QrcO+GvAAZauo=,tag:y4HM5xLSAzaEBrSqWUlpsQ==,type:comment]
#ENC[AES256_GCM,data:OiGD0S0aKU15hDKi,iv:dIFoxlFYv2dbQFTk1O/pJld30sVNOFpq83z8YqFdruE=,tag:PRat5Zkn5MBfgAt0voPuNg==,type:comment]
email:
school: ENC[AES256_GCM,data:5YdbEGvP3dkwOnGlwL2B,iv:FMHMImPMKCgtIoj8s3O5zPawPfMzJun7p0CACE/Iey4=,tag:NEA8a55p38za/kvhJOgfmg==,type:str]
personal: ENC[AES256_GCM,data:YFgATpdZkwYAmvyJcdbjuA==,iv:709EcGDPSfnUFI4Epdj3FLCQ/V3BvN3e50/c49n9qyg=,tag:xmR6B13j1zOo5KYxYU1iRQ==,type:str]
spam: ENC[AES256_GCM,data:Y0l/i74rH9brxBOyiCPyMaeE3A==,iv:cS/32vlXFLQI3vCIdMqNrzivO/9aqXNPAqQ1YWgjAoQ=,tag:+CBrYlnH5xgHkVZU/MMIDQ==,type:str]
proton: ENC[AES256_GCM,data:0jOY+B5px9GTLHCBXFz+QFE+CQ==,iv:R8CCCewIUo9fJ4gTByzTwwfNyTIOPH9ktUAPPqkGMd8=,tag:nqjFuvmBq5N02MPXi6ha6A==,type:str]
sops:
kms: []
gcp_kms: []
azure_kv: []
hc_vault: []
age:
- recipient: age13dpyswy6ezqr2gyty75waanpc9lhjs073vt56z6tvjyzh9mkydaqwsystl
enc: |
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBiNnpRZXBwaXk0aDZhMDBy
cThMNGdWaE9GZlpFN3RTLzhaYVJUKzFORkNjCmtuakFIczhVNXltQk42RWxjUnlz
dTdkUmJOdjBCZXZNZjE4QURGVW5wUGsKLS0tIGhkclA1M3dKZzUxZWpLZDlsRHZR
VTlua3pQRTZGUGw4OEVQSUhsMHZoVncKm0+J++ZOflbTjfb0Q/nC/LnwKXOq5XEE
CvRQmjp4sWgmnP8wrcPvtInPrkVYBHluI9DD9DRoQ+PTYsz8xSIRig==
-----END AGE ENCRYPTED FILE-----
lastmodified: "2023-11-22T04:23:23Z"
mac: ENC[AES256_GCM,data:JviqHLWwa+6Mnc8rmqaXWkPVRPm9LbwQBzXkc/ZsMHpcpBN2W6jWxof8AbNsU+d7eKhYlT4QeBC/13nlIcgxdNOP1ArDL94g9aFmve7iEyCUOQLf3bBExpFLxHWzUFmDTNh0ZmaGtUBH2gWyj3zY5t6EQ87Wo+PPlaiOHaNskBo=,iv:N1/eXQOjBR027T6hAsmNoZyVzU+uWZrtRBJLesaM76c=,tag:ycl1tNjSn3VkPek9woQWGg==,type:str]
pgp: []
unencrypted_suffix: _unencrypted
version: 3.8.1

View file

@ -14,7 +14,9 @@
];
packages = with pkgs; [
rnote
sops
libreoffice
notify-desktop
texlive.combined.scheme-medium
libsixel
aspell
@ -30,7 +32,7 @@
jetbrains-mono
fira-code
mononoki
iosevka
inter
(nerdfonts.override {fonts = ["FiraCode"];})
gnupg
pandoc

View file

@ -4,6 +4,7 @@
./git.nix
./taskwarrior.nix
./firefox.nix
# ./thunderbird.nix
];
programs.eza = {

View file

@ -50,6 +50,7 @@
aria2-integration
sponsorblock
xbrowsersync
sidebery
];
settings = {
"browser.aboutConfig.showWarning" = false;
@ -69,6 +70,7 @@
"browser.urlbar.suggest.trending" = false;
"browser.tabs.firefox-view" = false;
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
"browser.toolbars.bookmarks.visibility" = "never";
};
search = {
force = true;
@ -120,7 +122,7 @@
userChrome = ''
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
* {
font-family: "mononoki" !important;
font-family: "Inter" !important;
font-size: 14px !important;
--arrowpanel-background: ${theme.base00} !important;
@ -156,6 +158,7 @@
background-color: ${theme.base02} !important;
border-radius: 0px !important;
margin-block: 0px !important;
min-height: 0px !important;
}
.tabbrowser-tab:hover .tab-background {
background-color: ${theme.base09} !important;
@ -177,6 +180,18 @@
#TabsToolbar {
z-index: 1000 !important;
}
#firefox-view-button {
visibility: collapse;
}
#alltabs-button {
visibility: collapse;
}
hbox.titlebar-spacer:nth-child(3) {
visibility: collapse;
}
hbox.titlebar-buttonbox-container:nth-child(5) {
visibility: collapse;
}
#mainPopupSet menupopup,
menupopup:not(.in-menulist) > menuitem,
menupopup:not(.in-menulist) > menu {
@ -228,6 +243,9 @@
#tabbrowser-tabs {
-moz-box-flex: 1 !important;
text-align: center !important;
border-inline-start: 0px !important;
padding-inline-start: 0px !important;
margin-inline-start: 0px !important;
}
#tabs-newtab-button{
display: none !important;
@ -327,6 +345,22 @@
padding-inline: var(--urlbarView-item-inline-padding) 18px;
opacity: 0.6;
}
:root:not([privatebrowsingmode], [firefoxviewhidden]) :is(toolbarbutton, toolbarpaletteitem) + #tabbrowser-tabs,
:root[privatebrowsingmode]:not([firefoxviewhidden]) :is(
toolbarbutton:not(#firefox-view-button),
toolbarpaletteitem:not(#wrapper-firefox-view-button)
) + #tabbrowser-tabs {
border-inline-start: 0px !important;
padding-inline-start: 0px !important;
margin-inline-start: 0px !important;
}
.tab-icon-stack {
display: none;
}
.tab-label {
white-space: nowrap;
line-height: 2 !important; /* override 'normal' in case of fallback math fonts with huge metrics */
}
'';
userContent = ''
@namespace url("http://www.w3.org/1999/xhtml");
@ -345,7 +379,7 @@
}
@-moz-document url("about:newtab"), url("about:home") {
* {
font-family: "mononoki" !important;
font-family: "Inter" !important;
}
body {
background-color: ${theme.base00} !important;

View file

@ -1,5 +1,24 @@
{...}: {
programs.taskwarrior = {
enable = true;
config = {
dateformat = "Y-M-D H:N";
report.list.columns = [
"id"
"entry.age"
"scheduled"
"due"
"description"
"urgency"
];
report.list.labels = [
"ID"
"Age"
"Sched"
"Due"
"Description"
"Urg"
];
};
};
}

View file

@ -0,0 +1,5 @@
{...}: {
programs.thunderbird = {
enable = true;
};
}

View file

@ -13,7 +13,6 @@
settings = {
add_newline = false;
format = lib.concatStrings [
"$shlvl"
"$directory"
"$git_branch"
"$git_commit"
@ -29,9 +28,9 @@
scan_timeout = 10;
git_commit.tag_disabled = false;
git_status = {
ahead = ''''${count}'';
behind = ''''${count}'';
diverged = ''''${ahead_count}''${behind_count}'';
ahead = ''''${count}'';
behind = ''''${count}'';
diverged = ''''${ahead_count}''${behind_count}'';
staged = "+$count";
};
nix_shell = {
@ -40,10 +39,17 @@
pure_msg = "ρ";
symbol = "";
};
# character = {
# success_symbol = "[%](bold green)";
# error_symbol = "[%](bold red)";
# };
directory = {
read_only = " ";
};
character = {
# success_symbol = "[)](bold green)";
# error_symbol = "[)](bold red)";
# vimcmd_symbol = "[(](bold green)";
# vimcmd_replace_one_symbol = "[(](bold purple)]";
# vimcmd_replace_symbol = "[(](bold purple)]";
# vimcmd_visual_symbol = "[(](bold yellow)]";
};
};
};
}

View file

@ -4,14 +4,6 @@
./foot.nix
];
xdg.configFile."river" = {
source = ./river;
executable = true;
recursive = true;
};
xdg.configFile."river/background.jpg".source = ../background.jpg;
xdg.configFile."sway" = {
source = ./sway;
executable = true;
@ -22,9 +14,6 @@
home.packages = with pkgs; [
wl-clipboard
# swaylock
# swayidle
wbg
dunst
grim
slurp

View file

@ -251,6 +251,9 @@ bindsym $mod+r mode "resize"
# }
# }
# Screenshot
bindsym Print exec IMG=~/Pictures/screenshots/$(date | sed "s/\s/-/g" | sed "s/--/-/g").png&&grim -g "$(slurp)" $IMG && cat $IMG | wl-copy && notify-desktop "Screenshot has been saved and copied to your clipboard" -a "grim" -u normal -t 2000
#
# Player
#
@ -270,8 +273,8 @@ bindsym $mod+r mode "resize"
# Backlight
#
# bindsym XF86MonBrightnessUp exec light -A 5 && light -G | cut -d'.' -f1 > $SWAYSOCK.wob
# bindsym XF86MonBrightnessDown exec light -U 5 && light -G | cut -d'.' -f1 > $SWAYSOCK.wob
# bindsym XF86MonBrightnessUp exec brightnessctl s +5%
# bindsym XF86MonBrightnessDown exec brightnessctl s 5%-
#
# SwayFX

View file

@ -1,5 +1,5 @@
exec nm-applet
exec systemctl --user restart wireplumber
# exec systemctl --user restart wireplumber
exec gammastep-indicator
exec dunst
#exec swayidle -w \