[feat] Add stuff

This commit is contained in:
uttarayan21
2024-03-04 17:28:47 +05:30
parent 43c60deaa8
commit 76abda4d79
5 changed files with 62 additions and 54 deletions

View File

@@ -2,18 +2,20 @@
programs.firefox = { programs.firefox = {
enable = device.isLinux; enable = device.isLinux;
profiles.default = { profiles.default = {
userChrome = let userChrome =
csshacks = pkgs.fetchFromGitHub { let
owner = "MrOtherGuy"; csshacks = pkgs.fetchFromGitHub {
repo = "firefox-csshacks"; owner = "MrOtherGuy";
rev = "master"; repo = "firefox-csshacks";
sha256 = "sha256-r5CKOOcRWZQzYA9M6j7m2CAulOQItCuWsTSNGOYN87w="; rev = "master";
}; sha256 = "sha256-XJ+MTEADzOsCIh0I8EAxbtIpDHfMJsN68sKBy7/1l60=";
in '' };
@import url(${csshacks}/chrome/toolbars_below_content.css); in
@import url(${csshacks}/chrome/scrollable_menupopups.css); ''
@import url(${csshacks}/chrome/linux_gtk_window_control_patch.css); @import url(${csshacks}/chrome/toolbars_below_content.css);
''; @import url(${csshacks}/chrome/scrollable_menupopups.css);
@import url(${csshacks}/chrome/linux_gtk_window_control_patch.css);
'';
extensions = with pkgs.nur.repos.rycee.firefox-addons; [ extensions = with pkgs.nur.repos.rycee.firefox-addons; [
privacy-badger privacy-badger
bitwarden bitwarden

View File

@@ -51,6 +51,7 @@ in
mpv mpv
] ++ (if device.isLinux then [ ] ++ (if device.isLinux then [
gparted gparted
gptfdisk
polkit-kde-agent polkit-kde-agent
dig dig
mullvad mullvad

54
config/nix/flake.lock generated
View File

@@ -483,11 +483,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1709204054, "lastModified": 1709485962,
"narHash": "sha256-U1idK0JHs1XOfSI1APYuXi4AEADf+B+ZU4Wifc0pBHk=", "narHash": "sha256-rmFB4uE10+LJbcVE4ePgiuHOBlUIjQOeZt4VQVJTU8M=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "2f3367769a93b226c467551315e9e270c3f78b15", "rev": "d579633ff9915a8f4058d5c439281097e92380a8",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -504,11 +504,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1709204054, "lastModified": 1709445365,
"narHash": "sha256-U1idK0JHs1XOfSI1APYuXi4AEADf+B+ZU4Wifc0pBHk=", "narHash": "sha256-DVv6nd9FQBbMWbOmhq0KVqmlc3y3FMSYl49UXmMcO+0=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "2f3367769a93b226c467551315e9e270c3f78b15", "rev": "4de84265d7ec7634a69ba75028696d74de9a44a7",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -527,11 +527,11 @@
"rust-overlay": "rust-overlay_3" "rust-overlay": "rust-overlay_3"
}, },
"locked": { "locked": {
"lastModified": 1709290301, "lastModified": 1709423084,
"narHash": "sha256-0dpic4xWnPHqZrsRTVGrjw+5J1XjgHl/+Dw9XjvDC0o=", "narHash": "sha256-5D50xx8hu1urVNQhsRV4I3g8EPq0vq1Q98Cm3IfCgY8=",
"owner": "JakeStanger", "owner": "JakeStanger",
"repo": "ironbar", "repo": "ironbar",
"rev": "3df01ea93a27ba80e2be8c3fe832903c3e7871d2", "rev": "c2e23d5654550ded7718ab83d57e14a6345bcede",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -640,11 +640,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1709348262, "lastModified": 1709529951,
"narHash": "sha256-eYTA1uZtYGFKrDOKiAz1wlE6aIC9WSdBNF8bSS818zM=", "narHash": "sha256-KVqN0Dvf4bg87XYQCHdd1kuJkjA23y5wlTTSOnilLIU=",
"owner": "LnL7", "owner": "LnL7",
"repo": "nix-darwin", "repo": "nix-darwin",
"rev": "8a15cb36fffa0b5fbe31ef16ede0a479bef4b365", "rev": "e7d7a7f0c5a184c67b6bff56f95436d83d05fba5",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -727,11 +727,11 @@
"nmt": "nmt" "nmt": "nmt"
}, },
"locked": { "locked": {
"lastModified": 1709294841, "lastModified": 1709513017,
"narHash": "sha256-jJTiD0nOk1p+QNJq+v4dUMx3cb/RQ/dm+Q0vNLr8Qvs=", "narHash": "sha256-Ch86BJ023rvYI4bHAeLKkY6ctQIXMJ+NOVKYo3+SEjQ=",
"owner": "nixneovim", "owner": "nixneovim",
"repo": "nixneovim", "repo": "nixneovim",
"rev": "1f5b2c9613674c8400d764d16823e0add12b6970", "rev": "80485170869551e50a405e61bb3b37bf17319c98",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -753,11 +753,11 @@
"poetry2nix": "poetry2nix" "poetry2nix": "poetry2nix"
}, },
"locked": { "locked": {
"lastModified": 1709216468, "lastModified": 1709240484,
"narHash": "sha256-3b3RFHQzea2L7lMUiS87r2A/RC+TJbBo/g7IY+5DYfk=", "narHash": "sha256-e7Azz4vD3ogyDbpfEbMunYjPOytBxvcwKblwkIu+Q+M=",
"owner": "nixneovim", "owner": "nixneovim",
"repo": "nixneovimplugins", "repo": "nixneovimplugins",
"rev": "03cd562d0e4700216dcf8c3e14a4eebf0b2e5681", "rev": "27a92496c702a58705b02193462811b00793ed3c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -775,11 +775,11 @@
"poetry2nix": "poetry2nix_2" "poetry2nix": "poetry2nix_2"
}, },
"locked": { "locked": {
"lastModified": 1709240484, "lastModified": 1709475467,
"narHash": "sha256-e7Azz4vD3ogyDbpfEbMunYjPOytBxvcwKblwkIu+Q+M=", "narHash": "sha256-lGTtQyGkR1/XIwIQiPFLgtawrMn5DedbAH+Qn5Vk+Zg=",
"owner": "NixNeovim", "owner": "NixNeovim",
"repo": "NixNeovimPlugins", "repo": "NixNeovimPlugins",
"rev": "27a92496c702a58705b02193462811b00793ed3c", "rev": "f830c560c66a489f84d165efb5fbc6659718fc83",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -919,11 +919,11 @@
"nmt": { "nmt": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1694274695, "lastModified": 1709382952,
"narHash": "sha256-PufoLMSuBYkga8hTqYf/cIQzSuy2lfFj+cdKcp2nLEI=", "narHash": "sha256-n/BvuWVcQxaXCU30feNRqWWqabhIIO2+tRFnhLIhjiQ=",
"owner": "jooooscha", "owner": "jooooscha",
"repo": "nmt", "repo": "nmt",
"rev": "29595267923b4a6ce766ff0d85afaa930842b88d", "rev": "86a09994d1007c39a1f4d386e3caea9b4681d9d6",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -934,11 +934,11 @@
}, },
"nur": { "nur": {
"locked": { "locked": {
"lastModified": 1709366185, "lastModified": 1709545122,
"narHash": "sha256-K8CZc7mWQ2p2UiCzi9WVuzuUgG4nZe+BwTb3S6AYAsg=", "narHash": "sha256-ohYVgoGdhfwt96E4Dz/d39Xqm7FJDZaRJFS1Jow/Xn0=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nur", "repo": "nur",
"rev": "a539b9e38cd2604dae50937d80f181cca533a462", "rev": "a21779b3182ee5566a6bb5d9e851dfd8c79852da",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -123,6 +123,7 @@
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. # vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
# wget # wget
hyprland hyprland
xorg.xhost
foot foot
git git
fish fish
@@ -137,9 +138,8 @@
programs = { programs = {
hyprland.enable = true; hyprland.enable = true;
nushell.enable = true;
yubikey-touch-detector.enable = true;
hyprland.xwayland.enable = true; hyprland.xwayland.enable = true;
yubikey-touch-detector.enable = true;
}; };
security.rtkit.enable = true; security.rtkit.enable = true;

View File

@@ -4,23 +4,29 @@
{ config, lib, pkgs, modulesPath, ... }: { config, lib, pkgs, modulesPath, ... }:
{ {
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = boot.initrd.availableKernelModules = [ "vmd" "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
[ "vmd" "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = { fileSystems."/" =
device = "/dev/disk/by-uuid/bcaa8c53-6c04-43e0-bf2a-97d8c0f572d9"; { device = "/dev/disk/by-uuid/11d8beef-2a63-4231-af35-b9b8d3a17e9b";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/boot" = { fileSystems."/boot" =
device = "/dev/disk/by-uuid/4E27-DAC0"; { device = "/dev/disk/by-uuid/4E27-DAC0";
fsType = "vfat"; fsType = "vfat";
}; };
fileSystems."/home" =
{ device = "/dev/disk/by-uuid/d0835bd2-62fd-48d3-a0d1-8ae659f2e727";
fsType = "ext4";
};
swapDevices = [ ]; swapDevices = [ ];
@@ -33,6 +39,5 @@
# networking.interfaces.wlp4s0.useDHCP = lib.mkDefault true; # networking.interfaces.wlp4s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
lib.mkDefault config.hardware.enableRedistributableFirmware;
} }