This commit is contained in:
2021-05-16 20:36:44 +05:30
parent 4bccde9eff
commit a3033000a9
6 changed files with 11 additions and 13 deletions

View File

@@ -13,7 +13,7 @@ cd dotfiles
nixos-rebuild switch --flake .#Satori
```
or
`nixos-rebuild switch --flake github:natto1784/dotfiles#Satori`
`nixos-rebuild switch --flake github:natto1784/dotfiles#Satori`\
Replace Satori with whatever system you want or replace to whatever hostname you want in the config
## How home-manager workey
@@ -27,7 +27,7 @@ You can unlink "hm-result" after that
replace {USER} with 'natto' or whatever is availabe (or change it in the config)
## How packages workey
To build or run any of the packages in this flake do
To build or run any of the packages in this flake do\
`nix <"run"/"build"> github:natto1784/dotfiles#pkgs.<your_arch>.<package_name>`
Following are the people whose configs I took inspiration from and learned stuff from

View File

@@ -20,15 +20,13 @@
outputs = inputs@{self, nixpkgs, ... }:
inputs.utils.lib.eachDefaultSystem (system: {
pkgs = import nixpkgs {
packages = import nixpkgs {
inherit system;
overlays = self.overlays ++ [ inputs.nur.overlay inputs.emacs.overlay ];
config.allowUnfree = true;
};
}) //
(
let
in
{
overlays = [
(import ./overlays/overridesandshit.nix)
@@ -41,7 +39,7 @@
imports = [
./home/natto.nix
];
nixpkgs.overlays = self.pkgs.x86_64-linux.overlays;
nixpkgs.overlays = self.packages.x86_64-linux.overlays;
nixpkgs.config.allowUnfree = true;
};
homeDirectory = "/home/natto";
@@ -55,7 +53,7 @@
./satori.nix
inputs.agenix.nixosModules.age
inputs.home-manager.nixosModules.home-manager
{ nixpkgs.pkgs = self.pkgs.x86_64-linux; }
{ nixpkgs.pkgs = self.packages.x86_64-linux; }
];
};
});

View File

@@ -22,6 +22,7 @@ in
fish_variables = {
file = ./secrets/fish_variables.age;
path = "${home}/.config/fish/fish_variables";
mode = "660";
};
mpdasrc = {
file = ./secrets/mpdasrc.age;

View File

@@ -62,8 +62,8 @@ in
enable = true;
vimAlias = true;
viAlias = false;
withNodeJs = true;
withPython = true;
# withNodeJs = true;
# withPython = true;
extraConfig = ''
let g:gruvbox_italic=1
let g:gruvbox_contrast_dark="hard"

View File

@@ -1,5 +1,4 @@
#!/usr/bin/env nix-shell
#! nix-shell -i sh -p ncmpcpp python39Packages.ueberzug
#!/usr/bin/env sh
#credits: https://github.com/alnj/ncmpcpp-ueberzug
export FIFO_UEBERZUG="/tmp/mpd-ueberzug-${PPID}"

View File

@@ -9,7 +9,7 @@
fileSystems."/" =
{ device = "/dev/disk/by-uuid/4c02ddf5-d00e-4d84-856f-c327ae44d047";
fsType = "btrfs";
options = ["compress=zstd:10"];
options = ["compress-force=zstd:4"];
};
fileSystems."/boot/efi" =
@@ -40,7 +40,7 @@
fileSystems."/mnt/LinuxGames" =
{ device = "/dev/sda5";
fsType = "btrfs";
options = ["rw"];
options = ["rw" "compress-force=zstd:4"];
};
swapDevices = [ {device = "/dev/nvme0n1p7";} ];