moved to flakes
parent
118f9f0bff
commit
5558a65a50
19
capibara.nix
19
capibara.nix
|
@ -2,22 +2,13 @@
|
||||||
# your system. Help is available in the configuration.nix(5) man page
|
# your system. Help is available in the configuration.nix(5) man page
|
||||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||||
|
|
||||||
{ config, pkgs, ... }:
|
{ config, inputs, pkgs, ... }:
|
||||||
|
|
||||||
let
|
{
|
||||||
home-manager = builtins.fetchTarball {
|
imports = [ ./nixos/hardware-configuration/capibara.nix ./nixos/common.nix ];
|
||||||
url =
|
|
||||||
# "https://github.com/nix-community/home-manager/archive/release-21.11.tar.gz";
|
|
||||||
"https://github.com/nix-community/home-manager/archive/master.tar.gz";
|
|
||||||
};
|
|
||||||
in {
|
|
||||||
imports = [
|
|
||||||
./nixos/hardware-configuration/capibara.nix
|
|
||||||
./nixos/common.nix
|
|
||||||
"${home-manager}/nixos"
|
|
||||||
];
|
|
||||||
|
|
||||||
home-manager.users.rilla = import home/capibara.nix;
|
home-manager.users.rilla.imports =
|
||||||
|
[ home/capibara.nix "${inputs.impermanence}/home-manager.nix" ];
|
||||||
|
|
||||||
#fileSystems = {
|
#fileSystems = {
|
||||||
# "/home/rilla/Music" = {
|
# "/home/rilla/Music" = {
|
||||||
|
|
|
@ -0,0 +1,63 @@
|
||||||
|
{
|
||||||
|
"nodes": {
|
||||||
|
"home-manager": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1645557328,
|
||||||
|
"narHash": "sha256-7PCAESO8HxuSk1hH1J2ld+kK6fugFqNd+vqIXSGz1ag=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "home-manager",
|
||||||
|
"rev": "838d40d61a91e3807836545c4b420572ab2d62eb",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "home-manager",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"impermanence": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1644791231,
|
||||||
|
"narHash": "sha256-iDihsF1fUMK4xXiUudPnDM3veH1LXbbxfP9Lzekw9iU=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "impermanence",
|
||||||
|
"rev": "635bcd2d88739197a0b584aa9fadaa53c717a853",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "impermanence",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1645433236,
|
||||||
|
"narHash": "sha256-4va4MvJ076XyPp5h8sm5eMQvCrJ6yZAbBmyw95dGyw4=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "7f9b6e2babf232412682c09e57ed666d8f84ac2d",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"id": "nixpkgs",
|
||||||
|
"ref": "nixos-unstable",
|
||||||
|
"type": "indirect"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"inputs": {
|
||||||
|
"home-manager": "home-manager",
|
||||||
|
"impermanence": "impermanence",
|
||||||
|
"nixpkgs": "nixpkgs"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": "root",
|
||||||
|
"version": 7
|
||||||
|
}
|
|
@ -0,0 +1,35 @@
|
||||||
|
{
|
||||||
|
inputs = {
|
||||||
|
nixpkgs.url = "nixpkgs/nixos-unstable";
|
||||||
|
home-manager = {
|
||||||
|
url = "github:nix-community/home-manager";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
impermanence.url = "github:nix-community/impermanence";
|
||||||
|
};
|
||||||
|
outputs = { self, nixpkgs, home-manager, impermanence }@inputs: {
|
||||||
|
nixosConfigurations = {
|
||||||
|
trantor = nixpkgs.lib.nixosSystem {
|
||||||
|
system = "x86_64-linux";
|
||||||
|
specialArgs.inputs = inputs;
|
||||||
|
|
||||||
|
modules = [
|
||||||
|
./trantor.nix
|
||||||
|
home-manager.nixosModules.home-manager
|
||||||
|
impermanence.nixosModules.impermanence
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
capibara = nixpkgs.lib.nixosSystem {
|
||||||
|
system = "x86_64-linux";
|
||||||
|
specialArgs.inputs = inputs;
|
||||||
|
|
||||||
|
modules = [
|
||||||
|
./capibara.nix
|
||||||
|
home-manager.nixosModules.home-manager
|
||||||
|
impermanence.nixosModules.impermanence
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,37 +1,29 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
nixpkgs.config = {
|
|
||||||
packageOverrides = pkgs: {
|
|
||||||
nur = import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/master.tar.gz") {
|
|
||||||
inherit pkgs;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
# nix-env -f '<nixpkgs>' -qaP -A nur.repos.rycee.firefox-addons
|
# nix-env -f '<nixpkgs>' -qaP -A nur.repos.rycee.firefox-addons
|
||||||
programs.firefox = {
|
programs.firefox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# maybe enable tridactyl?
|
# maybe enable tridactyl?
|
||||||
# nix-env -f '<nixpkgs>' -qaP -A nur.repos.rycee.firefox-addons
|
# nix-env -f '<nixpkgs>' -qaP -A nur.repos.rycee.firefox-addons
|
||||||
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
# extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
||||||
browserpass
|
# browserpass
|
||||||
canvasblocker
|
# canvasblocker
|
||||||
clearurls
|
# clearurls
|
||||||
cookie-autodelete
|
# cookie-autodelete
|
||||||
darkreader
|
# darkreader
|
||||||
floccus
|
# floccus
|
||||||
foxyproxy-standard
|
# foxyproxy-standard
|
||||||
https-everywhere
|
# https-everywhere
|
||||||
i-dont-care-about-cookies
|
# i-dont-care-about-cookies
|
||||||
localcdn
|
# localcdn
|
||||||
noscript
|
# noscript
|
||||||
privacy-possum
|
# privacy-possum
|
||||||
privacy-redirect
|
# privacy-redirect
|
||||||
ublock-origin
|
# ublock-origin
|
||||||
vimium
|
# vimium
|
||||||
# todo: AdNauseam, wallabagger, DownThemAll! Wayback Machine
|
# # todo: AdNauseam, wallabagger, DownThemAll! Wayback Machine
|
||||||
];
|
# ];
|
||||||
profiles = {
|
profiles = {
|
||||||
default = {
|
default = {
|
||||||
id = 0;
|
id = 0;
|
||||||
|
@ -40,7 +32,8 @@
|
||||||
# settings = import ./arkenfox // {
|
# settings = import ./arkenfox // {
|
||||||
settings = {
|
settings = {
|
||||||
# change some values from arkenfox's defaults
|
# change some values from arkenfox's defaults
|
||||||
"privacy.resistFingerprinting" = false; # if true, this would the window size to rounded dimensions, which is too annoying on a tiling window manager
|
"privacy.resistFingerprinting" =
|
||||||
|
false; # if true, this would the window size to rounded dimensions, which is too annoying on a tiling window manager
|
||||||
"extensions.pocket.enabled" = false;
|
"extensions.pocket.enabled" = false;
|
||||||
"identity.fxaccounts.enabled" = false;
|
"identity.fxaccounts.enabled" = false;
|
||||||
"browser.search.suggest.enabled" = true;
|
"browser.search.suggest.enabled" = true;
|
||||||
|
|
|
@ -6,5 +6,6 @@ in {
|
||||||
home.packages = [ mailsync pkgs.urlscan pkgs.abook ];
|
home.packages = [ mailsync pkgs.urlscan pkgs.abook ];
|
||||||
programs.neomutt.settings.query_command =
|
programs.neomutt.settings.query_command =
|
||||||
''"${pkgs.abook}/bin/abook --mutt-query '%s'"'';
|
''"${pkgs.abook}/bin/abook --mutt-query '%s'"'';
|
||||||
programs.alot.enable = true;
|
# programs.alot.enable = true;
|
||||||
|
programs.alot.enable = false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
{
|
{
|
||||||
home.packages = [
|
home.packages = [
|
||||||
pkgs.esphome
|
pkgs.esphome
|
||||||
pkgs.freecad
|
# pkgs.freecad
|
||||||
pkgs.kicad-small
|
# pkgs.kicad-small
|
||||||
pkgs.meshlab
|
pkgs.meshlab
|
||||||
pkgs.openscad
|
pkgs.openscad
|
||||||
pkgs.slic3r
|
pkgs.slic3r
|
||||||
|
|
|
@ -1,11 +1,6 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, inputs, pkgs, ... }:
|
||||||
|
|
||||||
let
|
{
|
||||||
impermanence = builtins.fetchTarball {
|
|
||||||
url = "https://github.com/nix-community/impermanence/archive/master.tar.gz";
|
|
||||||
};
|
|
||||||
|
|
||||||
in {
|
|
||||||
# Let Home Manager install and manage itself.
|
# Let Home Manager install and manage itself.
|
||||||
# programs.home-manager.enable = true;
|
# programs.home-manager.enable = true;
|
||||||
|
|
||||||
|
@ -15,7 +10,6 @@ in {
|
||||||
home.homeDirectory = "/home/rilla";
|
home.homeDirectory = "/home/rilla";
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
"${impermanence}/home-manager.nix"
|
|
||||||
./arduino
|
./arduino
|
||||||
./barrier
|
./barrier
|
||||||
./browsers
|
./browsers
|
||||||
|
@ -59,6 +53,7 @@ in {
|
||||||
".local/share/mpd"
|
".local/share/mpd"
|
||||||
".local/share/webkitgtk"
|
".local/share/webkitgtk"
|
||||||
".mozilla"
|
".mozilla"
|
||||||
|
".librewolf"
|
||||||
".newsboat"
|
".newsboat"
|
||||||
".vdirsyncer"
|
".vdirsyncer"
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,19 +1,11 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
let
|
{
|
||||||
impermanence = builtins.fetchTarball {
|
nix = {
|
||||||
url = "https://github.com/nix-community/impermanence/archive/master.tar.gz";
|
package = pkgs.nixUnstable;
|
||||||
};
|
extraOptions = ''
|
||||||
in {
|
experimental-features = nix-command flakes
|
||||||
imports = [ "${impermanence}/nixos.nix" ];
|
'';
|
||||||
|
|
||||||
nixpkgs.config = {
|
|
||||||
packageOverrides = pkgs: {
|
|
||||||
nur = import (builtins.fetchTarball
|
|
||||||
"https://github.com/nix-community/NUR/archive/master.tar.gz") {
|
|
||||||
inherit pkgs;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# boot.binfmt.emulatedSystems = [ "aarch64-linux" "qemu-aarch64" ];
|
# boot.binfmt.emulatedSystems = [ "aarch64-linux" "qemu-aarch64" ];
|
||||||
|
|
19
trantor.nix
19
trantor.nix
|
@ -2,22 +2,13 @@
|
||||||
# your system. Help is available in the configuration.nix(5) man page
|
# your system. Help is available in the configuration.nix(5) man page
|
||||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||||
|
|
||||||
{ config, pkgs, ... }:
|
{ config, inputs, pkgs, ... }:
|
||||||
|
|
||||||
let
|
{
|
||||||
home-manager = builtins.fetchTarball {
|
imports = [ ./nixos/hardware-configuration/trantor.nix ./nixos/common.nix ];
|
||||||
url =
|
|
||||||
# "https://github.com/nix-community/home-manager/archive/release-21.11.tar.gz";
|
|
||||||
"https://github.com/nix-community/home-manager/archive/master.tar.gz";
|
|
||||||
};
|
|
||||||
in {
|
|
||||||
imports = [
|
|
||||||
./nixos/hardware-configuration/trantor.nix
|
|
||||||
./nixos/common.nix
|
|
||||||
"${home-manager}/nixos"
|
|
||||||
];
|
|
||||||
|
|
||||||
home-manager.users.rilla = import home/trantor.nix;
|
home-manager.users.rilla.imports =
|
||||||
|
[ home/trantor.nix "${inputs.impermanence}/home-manager.nix" ];
|
||||||
|
|
||||||
fileSystems = {
|
fileSystems = {
|
||||||
"/boot/efi" = {
|
"/boot/efi" = {
|
||||||
|
|
Loading…
Reference in New Issue