Compare commits

...

2 Commits

Author SHA1 Message Date
2ff04267b6 update readme
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
2022-12-08 01:17:48 +05:30
e6cb5b2615 ran nixpkgs-fmt
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
2022-12-08 01:11:53 +05:30
19 changed files with 89 additions and 102 deletions

View File

@@ -2,32 +2,7 @@
#+AUTHOR: Amneesh Singh #+AUTHOR: Amneesh Singh
#+OPTIONS: toc:nil num:nil #+OPTIONS: toc:nil num:nil
#+begin_src sh NixOS configurations for several hosts, now with [[https://flake.parts][flake-parts]].
├───homeConfigurations: unknown
├───legacyPackages
warning: │ ├───aarch64-linux: omitted (use '--legacy' to show)
warning: │ └───x86_64-linux: omitted (use '--legacy' to show)
└───nixosConfigurations
├───Marisa: NixOS configuration
├───Remilia: NixOS configuration
└───Satori: NixOS configuration
#+end_src
* TODOs
+ TODO Add user specific traditional dotfiles.
+ DONE Try home-manager
+ DONE Try nix flakes
* How install workey
Either do
#+begin_src sh
cd dotfiles
nixos-rebuild switch --flake .
#+end_src
or
#+begin_src sh
nixos-rebuild switch --flake "git+https://git.weirdnatto.in/natto1784/dotfiles?ref=nixos"
#+end_src
* How home-manager workey * How home-manager workey
Just do Just do
@@ -38,7 +13,7 @@ nix run nixpkgs#home-manager switch -- --flake "git+https://git.weirdnatto.in/na
* How packages workey * 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
#+begin_src sh #+begin_src sh
nix <"run"/"build"> "git+https://git.weirdnatto.in/natto1784/dotfiles?ref=nixos"#pkgs.<your_arch>.<package_name> nix <"run"/"build"> "git+https://git.weirdnatto.in/natto1784/dotfiles?ref=nixos"#<package_name>
#+end_src #+end_src
----- -----

View File

@@ -59,7 +59,8 @@ let
}; };
}; };
}); });
in { in
{
options.age = { options.age = {
secrets = mkOption { secrets = mkOption {

View File

@@ -24,11 +24,13 @@
target = "${xdg.configHome}/mpv/mpv.conf"; target = "${xdg.configHome}/mpv/mpv.conf";
}; };
packages = { packages = {
text = let text =
let
packages = builtins.map (p: "${p.name}") config.home.packages; packages = builtins.map (p: "${p.name}") config.home.packages;
sortedUnique = builtins.sort builtins.lessThan (lib.unique packages); sortedUnique = builtins.sort builtins.lessThan (lib.unique packages);
formatted = builtins.concatStringsSep "\n" sortedUnique; formatted = builtins.concatStringsSep "\n" sortedUnique;
in formatted; in
formatted;
target = "${xdg.configHome}/${config.home.username}-packages"; target = "${xdg.configHome}/${config.home.username}-packages";
}; };
}; };

View File

@@ -5,12 +5,14 @@
{ {
fileSystems."/" = fileSystems."/" =
{ device = "/dev/disk/by-label/NIXOS_SD"; {
device = "/dev/disk/by-label/NIXOS_SD";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/nix/store" = fileSystems."/nix/store" =
{ device = "/nix/store"; {
device = "/nix/store";
fsType = "none"; fsType = "none";
options = [ "bind" ]; options = [ "bind" ];
}; };

View File

@@ -6,9 +6,14 @@
allowedTCPPorts = [ allowedTCPPorts = [
22 # ssh 22 # ssh
80 # http 80 # http
6060 4444 5454 8080 #???? 6060
4444
5454
8080 #????
5001 #gitea 5001 #gitea
8800 4646 8500 #vault nomad consul 8800
4646
8500 #vault nomad consul
8888 #simpler-filehost1 8888 #simpler-filehost1
6666 #concourse 6666 #concourse
202 #gitea-ssh 202 #gitea-ssh

View File

@@ -2,11 +2,13 @@
{ {
imports = imports =
[ (modulesPath + "/profiles/qemu-guest.nix") [
(modulesPath + "/profiles/qemu-guest.nix")
]; ];
fileSystems."/" = fileSystems."/" =
{ device = "/dev/disk/by-uuid/d91adce2-9059-4a8a-86e7-dee6ecc85b2b"; {
device = "/dev/disk/by-uuid/d91adce2-9059-4a8a-86e7-dee6ecc85b2b";
fsType = "ext4"; fsType = "ext4";
}; };

View File

@@ -1,4 +1,3 @@
{ config, lib, ... }: { config, lib, ... }:
#let #let

View File

@@ -1,6 +1,7 @@
final: prev: final: prev:
let let
call = prev.callPackage; in call = prev.callPackage;
in
{ {
customscripts = call ./customscripts { }; customscripts = call ./customscripts { };
tlauncher = call ./tlauncher { }; tlauncher = call ./tlauncher { };