mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-01-18 17:11:39 +01:00
vm : another systemd test
This commit is contained in:
parent
b81eb6fa54
commit
fcfb3e50b1
3 changed files with 29 additions and 12 deletions
32
flake.lock
32
flake.lock
|
@ -332,18 +332,17 @@
|
|||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1714430104,
|
||||
"narHash": "sha256-TGCTDeE8lEm/HC92Ev5ql2vx6Z4iUOwF2vsmLn/UjkM=",
|
||||
"owner": "nikstur",
|
||||
"lastModified": 1715447595,
|
||||
"narHash": "sha256-VsVAUQOj/cS1LCOmMjAGeRksXIAdPnFIjCQ0XLkCsT0=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "12215c110b0f3a652953d215e827fd4b56e0f536",
|
||||
"rev": "062ca2a9370a27a35c524dc82d540e6e9824b652",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nikstur",
|
||||
"ref": "systemd-256",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
"id": "nixpkgs",
|
||||
"ref": "nixos-unstable",
|
||||
"type": "indirect"
|
||||
}
|
||||
},
|
||||
"nixpkgs-lib": {
|
||||
|
@ -377,6 +376,22 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs-systemd-256": {
|
||||
"locked": {
|
||||
"lastModified": 1714430104,
|
||||
"narHash": "sha256-TGCTDeE8lEm/HC92Ev5ql2vx6Z4iUOwF2vsmLn/UjkM=",
|
||||
"owner": "nikstur",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "12215c110b0f3a652953d215e827fd4b56e0f536",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nikstur",
|
||||
"ref": "systemd-256",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"pfersel": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
|
@ -458,6 +473,7 @@
|
|||
"nix-colors": "nix-colors",
|
||||
"nix-index-database": "nix-index-database",
|
||||
"nixpkgs": "nixpkgs",
|
||||
"nixpkgs-systemd-256": "nixpkgs-systemd-256",
|
||||
"pfersel": "pfersel",
|
||||
"purge": "purge",
|
||||
"trucksimulatorbot": "trucksimulatorbot"
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
description = "My nix setup";
|
||||
inputs = {
|
||||
|
||||
# nixpkgs.url = "nixpkgs/nixos-unstable";
|
||||
nixpkgs.url = "github:nikstur/nixpkgs/systemd-256";
|
||||
nixpkgs.url = "nixpkgs/nixos-unstable";
|
||||
nixpkgs-systemd-256.url = "github:nikstur/nixpkgs/systemd-256";
|
||||
|
||||
nix-index-database = {
|
||||
url = "github:nix-community/nix-index-database";
|
||||
|
@ -51,6 +51,7 @@
|
|||
outputs =
|
||||
{ self
|
||||
, nixpkgs
|
||||
, nixpkgs-systemd-256
|
||||
, home-manager
|
||||
, dns
|
||||
, nix-index-database
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
{ pkgs, lib, ... }:
|
||||
{ pkgs, lib, nixpkgs-systemd-256, ... }:
|
||||
|
||||
{
|
||||
systemd = {
|
||||
|
||||
package = lib.mkDefault (pkgs.systemd.override { withHomed = false; });
|
||||
package = lib.mkDefault (nixpkgs-systemd-256.legacyPackages.x86_64-linux.systemd.override { withHomed = false; });
|
||||
sleep.extraConfig = ''
|
||||
HibernateDelaySec=2h
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue