20.09 update
This commit is contained in:
parent
87c1b4590a
commit
543b582f60
20 changed files with 59 additions and 63 deletions
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"url": "https://github.com/NixOS/nixpkgs-channels.git",
|
||||
"rev": "51d115ac89d676345b05a0694b23bd2691bf708a",
|
||||
"date": "2020-09-04T14:07:56-07:00",
|
||||
"sha256": "1gfjaa25nq4vprs13h30wasjxh79i67jj28v54lkj4ilqjhgh2rs",
|
||||
"url": "https://github.com/NixOS/nixpkgs.git",
|
||||
"rev": "58f9c4c7d3a42c912362ca68577162e38ea8edfb",
|
||||
"date": "2020-11-18T12:49:40-05:00",
|
||||
"sha256": "1517dy07jf4zhzknqbgm617lgjxsn7a6k1vgq61c67f6h55qs5ij",
|
||||
"fetchSubmodules": false
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"url": "https://github.com/NixOS/nixpkgs-channels.git",
|
||||
"rev": "c59ea8b8a0e7f927e7291c14ea6cd1bd3a16ff38",
|
||||
"date": "2020-08-20T19:08:02+02:00",
|
||||
"sha256": "1ak7jqx94fjhc68xh1lh35kh3w3ndbadprrb762qgvcfb8351x8v",
|
||||
"url": "https://github.com/NixOS/nixpkgs.git",
|
||||
"rev": "2deeb58f49480f468adca6b08291322de4dbce6b",
|
||||
"date": "2020-11-12T23:50:31+00:00",
|
||||
"sha256": "0fx2car6dcd1yz6jjkifcan0amwzhs3170h0r69k0wfwiaadpvjv",
|
||||
"fetchSubmodules": false
|
||||
}
|
||||
|
|
|
@ -5,19 +5,18 @@
|
|||
custom.samba-share = {
|
||||
enable = true;
|
||||
folders = {
|
||||
movies = config.test.services.syncthing.declarative.folders.movies.path;
|
||||
music =
|
||||
config.test.services.syncthing.declarative.folders.music-library.path;
|
||||
samples = config.test.services.syncthing.declarative.folders.samples.path;
|
||||
series = config.test.services.syncthing.declarative.folders.series.path;
|
||||
movies = config.services.syncthing.declarative.folders.movies.path;
|
||||
music = config.services.syncthing.declarative.folders.music-library.path;
|
||||
samples = config.services.syncthing.declarative.folders.samples.path;
|
||||
series = config.services.syncthing.declarative.folders.series.path;
|
||||
};
|
||||
private.test = {
|
||||
folder = config.test.services.syncthing.declarative.folders.porn.path;
|
||||
folder = config.services.syncthing.declarative.folders.porn.path;
|
||||
users = "kodi";
|
||||
};
|
||||
};
|
||||
|
||||
test.services.syncthing = {
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
openDefaultPorts = true;
|
||||
declarative = {
|
||||
|
|
|
@ -5,14 +5,13 @@
|
|||
custom.samba-share = {
|
||||
enable = true;
|
||||
folders = {
|
||||
movies = config.test.services.syncthing.declarative.folders.movies.path;
|
||||
series = config.test.services.syncthing.declarative.folders.series.path;
|
||||
music =
|
||||
config.test.services.syncthing.declarative.folders.music-library.path;
|
||||
movies = config.services.syncthing.declarative.folders.movies.path;
|
||||
series = config.services.syncthing.declarative.folders.series.path;
|
||||
music = config.services.syncthing.declarative.folders.music-library.path;
|
||||
};
|
||||
};
|
||||
|
||||
test.services.syncthing = {
|
||||
services.syncthing = {
|
||||
guiAddress = lib.mkForce "${config.networking.hostName}.insecure:8384";
|
||||
enable = true;
|
||||
openDefaultPorts = true;
|
||||
|
|
|
@ -6,7 +6,7 @@ in {
|
|||
nixpkgs.overlays = [ (import <mozilla-overlay/rust-overlay.nix>) ];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
bitwig-studio
|
||||
#bitwig-studio
|
||||
#unstable.sonic-visualiser
|
||||
sononym-crawler
|
||||
darktable
|
||||
|
@ -22,7 +22,7 @@ in {
|
|||
jetbrains.datagrip
|
||||
|
||||
# foto
|
||||
fuji-cam-wifi-tool
|
||||
#fuji-cam-wifi-tool
|
||||
|
||||
# processing
|
||||
processing
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{ config, pkgs, lib, ... }: {
|
||||
|
||||
test.services.syncthing = {
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
openDefaultPorts = false;
|
||||
user = "palo";
|
||||
|
|
|
@ -45,31 +45,31 @@ in {
|
|||
};
|
||||
# shared folders
|
||||
samples = {
|
||||
mountPoint = toString
|
||||
config.test.services.syncthing.declarative.folders.samples.path;
|
||||
hostPath = toString
|
||||
config.test.services.syncthing.declarative.folders.samples.path;
|
||||
mountPoint =
|
||||
toString config.services.syncthing.declarative.folders.samples.path;
|
||||
hostPath =
|
||||
toString config.services.syncthing.declarative.folders.samples.path;
|
||||
isReadOnly = true;
|
||||
};
|
||||
movies = {
|
||||
mountPoint = toString
|
||||
config.test.services.syncthing.declarative.folders.movies.path;
|
||||
hostPath = toString
|
||||
config.test.services.syncthing.declarative.folders.movies.path;
|
||||
mountPoint =
|
||||
toString config.services.syncthing.declarative.folders.movies.path;
|
||||
hostPath =
|
||||
toString config.services.syncthing.declarative.folders.movies.path;
|
||||
isReadOnly = true;
|
||||
};
|
||||
music = {
|
||||
mountPoint = toString
|
||||
config.test.services.syncthing.declarative.folders.music-library.path;
|
||||
config.services.syncthing.declarative.folders.music-library.path;
|
||||
hostPath = toString
|
||||
config.test.services.syncthing.declarative.folders.music-library.path;
|
||||
config.services.syncthing.declarative.folders.music-library.path;
|
||||
isReadOnly = true;
|
||||
};
|
||||
series = {
|
||||
mountPoint = toString
|
||||
config.test.services.syncthing.declarative.folders.series.path;
|
||||
hostPath = toString
|
||||
config.test.services.syncthing.declarative.folders.series.path;
|
||||
mountPoint =
|
||||
toString config.services.syncthing.declarative.folders.series.path;
|
||||
hostPath =
|
||||
toString config.services.syncthing.declarative.folders.series.path;
|
||||
isReadOnly = true;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -3,15 +3,14 @@
|
|||
custom.samba-share = {
|
||||
enable = true;
|
||||
folders = {
|
||||
movies = config.test.services.syncthing.declarative.folders.movies.path;
|
||||
series = config.test.services.syncthing.declarative.folders.series.path;
|
||||
samples = config.test.services.syncthing.declarative.folders.samples.path;
|
||||
music =
|
||||
config.test.services.syncthing.declarative.folders.music-library.path;
|
||||
movies = config.services.syncthing.declarative.folders.movies.path;
|
||||
series = config.services.syncthing.declarative.folders.series.path;
|
||||
samples = config.services.syncthing.declarative.folders.samples.path;
|
||||
music = config.services.syncthing.declarative.folders.music-library.path;
|
||||
};
|
||||
};
|
||||
|
||||
test.services.syncthing = {
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
openDefaultPorts = false;
|
||||
dataDir = "/home/syncthing";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{ config, pkgs, lib, ... }: {
|
||||
|
||||
test.services.syncthing = {
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
openDefaultPorts = false;
|
||||
user = "palo";
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
imports = [
|
||||
|
||||
./later/syncthing.nix
|
||||
#./later/syncthing.nix
|
||||
#./later/nextcloud.nix
|
||||
|
||||
./services/light-control.nix
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
assert lib.versionOlder lib.version "20.09";
|
||||
# assert lib.versionOlder lib.version "20.09";
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.test.services.syncthing;
|
||||
cfg = config.services.syncthing;
|
||||
defaultUser = "syncthing";
|
||||
|
||||
devices = mapAttrsToList (name: device: {
|
||||
|
|
|
@ -94,7 +94,7 @@ in {
|
|||
|
||||
})
|
||||
# todo : maybe better to have a parameter for this
|
||||
(mkIf config.test.services.syncthing.enable {
|
||||
(mkIf config.services.syncthing.enable {
|
||||
users.groups."syncthing".members = [ "smbguest" ];
|
||||
})
|
||||
];
|
||||
|
|
|
@ -34,11 +34,9 @@ in {
|
|||
# -----------------------
|
||||
desktopManager = { xterm.enable = false; };
|
||||
displayManager.defaultSession = "none+xmonad";
|
||||
displayManager.lightdm = {
|
||||
enable = true;
|
||||
autoLogin.enable = true;
|
||||
autoLogin.user = cfg.autoLoginUser;
|
||||
};
|
||||
displayManager.autoLogin.enable = true;
|
||||
displayManager.autoLogin.user = cfg.autoLoginUser;
|
||||
displayManager.lightdm = { enable = true; };
|
||||
windowManager = {
|
||||
xmonad.enable = true;
|
||||
xmonad.enableContribAndExtras = true;
|
||||
|
|
|
@ -10,7 +10,8 @@ rustPlatform.buildRustPackage rec {
|
|||
sha256 = "1vflkrld7qiikykna2ygw6cv8vn07x458pkrsrxm8imhm579076r";
|
||||
};
|
||||
|
||||
cargoSha256 = "07pwds279qc54g5fza805ah2m8jhrdzng7vb1bi24a9ra9ci8s29";
|
||||
cargoSha256 = "1zpsqg9v1w17ks22i3vspdydfbznv9s3c9av7lww69wkarksznp5";
|
||||
#cargoSha256 = "07pwds279qc54g5fza805ah2m8jhrdzng7vb1bi24a9ra9ci8s29";
|
||||
#cargoSha256 = "10s1h1xya2gl5wj9cj104z50d9awv8z2mbply22lpzwzqyxrrxd9";
|
||||
#verifyCargoDeps = true;
|
||||
|
||||
|
|
|
@ -10,7 +10,8 @@ rustPlatform.buildRustPackage rec {
|
|||
sha256 = "1mj0k6ykac332667315kqrvg37j8r8078g48nafv7ini6lw8djas";
|
||||
};
|
||||
|
||||
cargoSha256 = "1ijnh2ank9slmfglw4yhnycl11x26m94m2hiq3hcasmbs6c39zj5";
|
||||
cargoSha256 = "0l4sa5c1pfjdlbdxrd61wd2qij4zaf8rx1xqac80jicly9rf3859";
|
||||
#cargoSha256 = "1ijnh2ank9slmfglw4yhnycl11x26m94m2hiq3hcasmbs6c39zj5";
|
||||
#verifyCargoDeps = true;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
|
|
@ -30,11 +30,11 @@ let
|
|||
nixPkgs = {
|
||||
nixpkgs.git = {
|
||||
ref = (ops.importJson ./.channelStable.json).rev;
|
||||
url = "https://github.com/NixOS/nixpkgs-channels";
|
||||
url = "https://github.com/NixOS/nixpkgs";
|
||||
};
|
||||
nixpkgs-unstable.git = {
|
||||
ref = (ops.importJson ./.channelUnstable.json).rev;
|
||||
url = "https://github.com/NixOS/nixpkgs-channels";
|
||||
url = "https://github.com/NixOS/nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -108,7 +108,7 @@ let
|
|||
#home-manager.file = toString ~/dev/home-manager;
|
||||
home-manager.git = {
|
||||
url = "https://github.com/rycee/home-manager.git";
|
||||
ref = "a378bccd609c159fa8d421233b9c5eae04f02042";
|
||||
ref = "7b6ebf2785cfc9dd6fc2b101cbbb2152eb68d45c";
|
||||
};
|
||||
|
||||
background-image-generators.git = {
|
||||
|
|
|
@ -102,7 +102,7 @@ in {
|
|||
];
|
||||
|
||||
# configure navi
|
||||
environment.variables.NAVI_PATH = "$HOME/.cheats";
|
||||
#environment.variables.NAVI_PATH = "$HOME/.cheats";
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
with lib; {
|
||||
|
||||
test.services.syncthing = {
|
||||
services.syncthing = {
|
||||
guiAddress = "${config.networking.hostName}.private:8384";
|
||||
declarative = {
|
||||
overrideDevices = true;
|
||||
|
|
|
@ -75,7 +75,6 @@ in {
|
|||
|
||||
home.file.".zshrc".text = ''
|
||||
# a fix for https://github.com/NixOS/nixpkgs/issues/27587
|
||||
source ${pkgs.navi}/share/navi/shell/navi.plugin.zsh
|
||||
autoload -U compinit && compinit
|
||||
'';
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
function fetch (){
|
||||
local rev=$1
|
||||
local output=$2
|
||||
local url=${3:-https://github.com/NixOS/nixpkgs-channels.git}
|
||||
local url=${3:-https://github.com/NixOS/nixpkgs.git}
|
||||
|
||||
echo
|
||||
echo
|
||||
|
@ -15,7 +15,7 @@ function fetch (){
|
|||
|
||||
}
|
||||
|
||||
fetch "refs/heads/nixos-20.03" .channelStable.json
|
||||
fetch "refs/heads/nixos-20.09" .channelStable.json
|
||||
fetch "refs/heads/nixos-unstable" .channelUnstable.json
|
||||
fetch "refs/tags/v3.2.0" .nix-writers.json "https://cgit.krebsco.de/nix-writers/"
|
||||
fetch "ef1e4480cf8af45cfdeac597b2f1b1af33923e93" .nixos-generators.json "https://github.com/nix-community/nixos-generators.git"
|
||||
|
|
Loading…
Reference in a new issue